]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libuuid: fix gcc15 warnings
authorCristian Rodríguez <cristian@rodriguez.im>
Fri, 19 Jul 2024 00:40:33 +0000 (20:40 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Jul 2024 11:24:17 +0000 (13:24 +0200)
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 <kzak@redhat.com>
libuuid/src/unparse.c

index ffeed2ed64421b526021cc337f7a3e6cc79c3169..abd44c886527d6f9a59fd4a5fcb1762165270b94 100644 (file)
@@ -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)
 {