From: Alejandro Colomar Date: Sat, 6 Jan 2024 23:31:01 +0000 (+0100) Subject: lib/getrange.c: getrange(): Add missing cast X-Git-Tag: 4.15.2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29f135777e4b7591fa854d9cf69df76274794a01;p=thirdparty%2Fshadow.git lib/getrange.c: getrange(): Add missing cast isdigit(3) requires a cast if the argument is of type 'char'. Signed-off-by: Alejandro Colomar --- diff --git a/lib/getrange.c b/lib/getrange.c index 86f77711e..16022df32 100644 --- a/lib/getrange.c +++ b/lib/getrange.c @@ -55,7 +55,7 @@ getrange(const char *range, if ('\0' == *end) return 0; /* - */ parse_max: - if (!isdigit(*end)) + if (!isdigit((unsigned char) *end)) return -1; if (a2ul(max, end, NULL, 10, 0, ULONG_MAX) == -1)