1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

lvmlockd: use DM_UUID_LEN for buffer size

This commit is contained in:
David Teigland 2017-07-07 14:58:35 -05:00
parent bffae6c985
commit c995e40b63

View File

@ -19,6 +19,7 @@
#include "lvm-version.h" #include "lvm-version.h"
#include "lvmetad-client.h" #include "lvmetad-client.h"
#include "lvmlockd-client.h" #include "lvmlockd-client.h"
#include "dm-ioctl.h" /* for DM_UUID_LEN */
/* #include <assert.h> */ /* #include <assert.h> */
#include <errno.h> #include <errno.h>
@ -4956,7 +4957,7 @@ out:
return rv; return rv;
} }
static char _dm_uuid[72]; static char _dm_uuid[DM_UUID_LEN];
static char *get_dm_uuid(char *dm_name) static char *get_dm_uuid(char *dm_name)
{ {