From: Maciej W. Rozycki Date: Thu, 29 May 2025 21:11:38 +0000 (+0100) Subject: stdio-common: Consistently use 'num_digits_len' in 'vfscanf' X-Git-Tag: glibc-2.42~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6de31203e236fa346c2f56ce4e1f8fe82594b03;p=thirdparty%2Fglibc.git stdio-common: Consistently use 'num_digits_len' in 'vfscanf' Make the only place use 'num_digits_len' enumeration constant where 10 is referred literally for a digit index in i18n handling for decimal integers. No change in code produced. Reviewed-by: Arjun Shankar --- diff --git a/stdio-common/vfscanf-internal.c b/stdio-common/vfscanf-internal.c index b965c7b915..86ae5019a6 100644 --- a/stdio-common/vfscanf-internal.c +++ b/stdio-common/vfscanf-internal.c @@ -1737,7 +1737,7 @@ __vfscanf_internal (FILE *s, const char *format, va_list argptr, #endif } - if (n < 10) + if (n < num_digits_len) { /* Found it. */ from_level = level;