From: Bjoern Jacke Date: Thu, 20 Feb 2025 16:14:54 +0000 (+0000) Subject: replace: fix hex_upper -> hexchars_upper X-Git-Tag: tevent-0.17.0~460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=546e5655b683072bfebc12a22177eb7187ec38dc;p=thirdparty%2Fsamba.git replace: fix hex_upper -> hexchars_upper It seems we don't have many systems without a working snprintf anymore... Signed-off-by: Bjoern Jacke Reviewed-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/lib/replace/snprintf.c b/lib/replace/snprintf.c index 63b0882e33f..f8cf38d1ef2 100644 --- a/lib/replace/snprintf.c +++ b/lib/replace/snprintf.c @@ -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--;