]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Enumerated all values in array 4617/head
authorjamesfeatherston <jamesfeatherston@utexas.edu>
Wed, 3 Dec 2025 00:22:22 +0000 (18:22 -0600)
committerjamesfeatherston <jamesfeatherston@utexas.edu>
Wed, 3 Dec 2025 00:22:22 +0000 (18:22 -0600)
Signed-off-by: jamesfeatherston <jamesfeatherston@utexas.edu>
src/lxc/uuid.c

index df8d816fbaa7bfac6d3a48d1d59730ac122a4c94..730a9d5cb05203055eca8454d8c4cdbfbf6a044a 100644 (file)
@@ -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];
 }