From b443c1779e39bb056b6045b81ba655c875b45747 Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Mon, 28 Aug 2017 13:20:55 -0600 Subject: misc: replace magic number 37 with UUID_STR_LEN Signed-off-by: Philip Prindeville --- disk-utils/mkswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disk-utils') diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c index 748e241cf..a6077daf0 100644 --- a/disk-utils/mkswap.c +++ b/disk-utils/mkswap.c @@ -132,7 +132,7 @@ static void set_uuid_and_label(const struct mkswap_control *ctl) printf(_("no label, ")); #ifdef HAVE_LIBUUID if (ctl->uuid) { - char uuid_string[37]; + char uuid_string[UUID_STR_LEN]; uuid_unparse(ctl->uuid, uuid_string); printf("UUID=%s\n", uuid_string); } else -- cgit v1.2.3-55-g7522