From: Cristian Rodríguez Date: Fri, 19 Jul 2024 00:40:33 +0000 (-0400) Subject: libuuid: fix gcc15 warnings X-Git-Tag: v2.42-start~262 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eac056c66f746795c876f9dede6c3427f82809ee;p=thirdparty%2Futil-linux.git 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 --- diff --git a/libuuid/src/unparse.c b/libuuid/src/unparse.c index ffeed2ed6..abd44c886 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) {