mirror of
https://github.com/shadow-maint/shadow.git
synced 2026-01-26 14:03:17 +00:00
lib/getrange.c: getrange(): Add missing cast
isdigit(3) requires a cast if the argument is of type 'char'. Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
parent
34f431f607
commit
29f135777e
@ -55,7 +55,7 @@ getrange(const char *range,
|
||||
if ('\0' == *end)
|
||||
return 0; /* <long>- */
|
||||
parse_max:
|
||||
if (!isdigit(*end))
|
||||
if (!isdigit((unsigned char) *end))
|
||||
return -1;
|
||||
|
||||
if (a2ul(max, end, NULL, 10, 0, ULONG_MAX) == -1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user