Skip to contentSkip to conversation

master - lvmlockd: use DM_UUID_LEN for buffer size

PATCH David Teigland 1 participant 1 message Jul 7, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c995e40b6333fb83fc1eda7be0cc4ef43f1eb88e
Commit:        c995e40b6333fb83fc1eda7be0cc4ef43f1eb88e
Parent:        bffae6c9855033a22893b28a79d5e7952504b95e
Author:        David Teigland <[email protected]>
AuthorDate:    Fri Jul 7 14:58:35 2017 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Fri Jul 7 15:00:15 2017 -0500

lvmlockd: use DM_UUID_LEN for buffer size

---
 daemons/lvmlockd/lvmlockd-core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
daemons/lvmlockd/lvmlockd-core.c +2 -1
index b6f3df9..867e3ca 100644
@@ -19,6 +19,7 @@
 #include "lvm-version.h"
 #include "lvmetad-client.h"
 #include "lvmlockd-client.h"
+#include "dm-ioctl.h" /* for DM_UUID_LEN */
 
 /* #include <assert.h> */
 #include <errno.h>
@@ -4956,7 +4957,7 @@ out:
 	return rv;
 }
 
-static char _dm_uuid[72];
+static char _dm_uuid[DM_UUID_LEN];
 
 static char *get_dm_uuid(char *dm_name)
 {