From 3c8fa2aa01dd6639b146e537ddcc2709752678d2 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 29 Aug 2014 12:00:05 +0200 Subject: [PATCH] clvmd: use correctly sized buffers for sscanf sscanf needs extra 1 char for '\0' --- daemons/clvmd/lvm-functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c index 1754b7ddd..f3a56cea6 100644 --- a/daemons/clvmd/lvm-functions.c +++ b/daemons/clvmd/lvm-functions.c @@ -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;