From 6bb4ff842dc0b8e7be242cf9434d74fad528edf5 Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Tue, 30 Jun 2026 13:13:37 +0100 Subject: [PATCH] lib/roken: fix hex digit table initializer --- lib/roken/hex.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/roken/hex.c b/lib/roken/hex.c index 5cd202603..ce0f1f954 100644 --- a/lib/roken/hex.c +++ b/lib/roken/hex.c @@ -37,7 +37,10 @@ #include #include "hex.h" -static const char hexchar[16] = "0123456789ABCDEF"; +static const char hexchar[16] = { + '0', '1', '2', '3', '4', '5', '6', '7', + '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' +}; static inline int pos(char c)