]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
replace: fix hex_upper -> hexchars_upper
authorBjoern Jacke <bjacke@samba.org>
Thu, 20 Feb 2025 16:14:54 +0000 (16:14 +0000)
committerVolker Lendecke <vl@samba.org>
Thu, 27 Mar 2025 13:13:31 +0000 (13:13 +0000)
It seems we don't have many systems without a working snprintf anymore...

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
lib/replace/snprintf.c

index 63b0882e33f16e22f3dfbf8e378ececbcbfd8b5a..f8cf38d1ef20ddecb856e9fdebf8b283a053ee90 100644 (file)
@@ -832,8 +832,9 @@ static void fmtint(char *buffer, size_t *currlen, size_t maxlen,
        if (flags & DP_F_UP) caps = 1; /* Should characters be upper case? */
 
        do {
-               convert[place++] = (caps ? hex_upper
-                                        : hex_lower)[uvalue % (unsigned)base];
+               convert[place++] =
+                       (caps ? hexchars_upper
+                             : hexchars_lower)[uvalue % (unsigned)base];
                uvalue = (uvalue / (unsigned)base );
        } while(uvalue && (place < sizeof(convert)));
        if (place == sizeof(convert)) place--;