From: jamesfeatherston Date: Wed, 3 Dec 2025 00:22:22 +0000 (-0600) Subject: Enumerated all values in array X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4617%2Fhead;p=thirdparty%2Flxc.git Enumerated all values in array Signed-off-by: jamesfeatherston --- diff --git a/src/lxc/uuid.c b/src/lxc/uuid.c index df8d816fb..730a9d5cb 100644 --- a/src/lxc/uuid.c +++ b/src/lxc/uuid.c @@ -74,7 +74,10 @@ int lxc_id128_randomize(lxc_id128_t *ret) static char hexchar(int x) { - static const char table[16] = "0123456789abcdef"; + static const char table[] = { + '0', '1', '2', '3', '4', '5', '6', '7', + '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' + }; return table[x & 15]; }