summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
authorPhilip Prindeville2017-08-28 21:20:55 +0200
committerKarel Zak2017-09-05 11:49:21 +0200
commitb443c1779e39bb056b6045b81ba655c875b45747 (patch)
treee3ec49667aec5cf95a4d655db7818a24d386e721 /tests/helpers
parentlibuuid: add support for hash-based UUIDs (diff)
downloadkernel-qcow2-util-linux-b443c1779e39bb056b6045b81ba655c875b45747.tar.gz
kernel-qcow2-util-linux-b443c1779e39bb056b6045b81ba655c875b45747.tar.xz
kernel-qcow2-util-linux-b443c1779e39bb056b6045b81ba655c875b45747.zip
misc: replace magic number 37 with UUID_STR_LEN
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/test_uuid_namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/helpers/test_uuid_namespace.c b/tests/helpers/test_uuid_namespace.c
index 1bbf8754d..1522ed2bc 100644
--- a/tests/helpers/test_uuid_namespace.c
+++ b/tests/helpers/test_uuid_namespace.c
@@ -7,7 +7,7 @@
static void get_template(const char *ns)
{
const uuid_t *uuidptr;
- char buf[37];
+ char buf[UUID_STR_LEN];
uuidptr = uuid_get_template(ns);
if (uuidptr == NULL)