]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
stdio-common: Consistently use 'num_digits_len' in 'vfscanf'
authorMaciej W. Rozycki <macro@redhat.com>
Thu, 29 May 2025 21:11:38 +0000 (22:11 +0100)
committerMaciej W. Rozycki <macro@redhat.com>
Thu, 29 May 2025 21:11:38 +0000 (22:11 +0100)
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 <arjun@redhat.com>
stdio-common/vfscanf-internal.c

index b965c7b91521163f433ec1676ab160b765cf2ca3..86ae5019a6fd6842030d94be706732a03a72efa6 100644 (file)
@@ -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;