1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

clvmd: use correctly sized buffers for sscanf

sscanf needs extra 1 char for '\0'
This commit is contained in:
Zdenek Kabelac 2014-08-29 12:00:05 +02:00
parent 91a453de05
commit 3c8fa2aa01

View File

@ -725,7 +725,7 @@ void do_lock_vg(unsigned char command, unsigned char lock_flags, char *resource)
static int get_initial_state(struct dm_hash_table *excl_uuid)
{
int lock_mode;
char lv[64], vg[64], flags[25], vg_flags[25];
char lv[65], vg[65], flags[26], vg_flags[26]; /* with space for '\0' */
char uuid[65];
char line[255];
char *lvs_cmd;