From eac056c66f746795c876f9dede6c3427f82809ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cristian=20Rodr=C3=ADguez?= Date: Thu, 18 Jul 2024 20:40:33 -0400 Subject: [PATCH] libuuid: fix gcc15 warnings gcc15 complains that the initialization is too long, indeed it is not counting the last null byte, fix by simply not using an explicit count Signed-off-by: Karel Zak --- libuuid/src/unparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libuuid/src/unparse.c b/libuuid/src/unparse.c index ffeed2ed64..abd44c8865 100644 --- a/libuuid/src/unparse.c +++ b/libuuid/src/unparse.c @@ -37,8 +37,8 @@ #include "uuidP.h" -static char const hexdigits_lower[16] = "0123456789abcdef"; -static char const hexdigits_upper[16] = "0123456789ABCDEF"; +static char const hexdigits_lower[] = "0123456789abcdef"; +static char const hexdigits_upper[] = "0123456789ABCDEF"; static void uuid_fmt(const uuid_t uuid, char *buf, char const *restrict fmt) { -- 2.47.3