mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 13:15:21 +08:00
IFCONFIG(8): Fix isdigit() and isprint() usage
This commit is contained in:
@@ -116,7 +116,7 @@ in_getaddr(const char *s, int which)
|
||||
int masklen;
|
||||
struct sockaddr_in *min = sintab[MASK];
|
||||
*p = '\0';
|
||||
if (!isdigit(*(p + 1)))
|
||||
if (!isdigit((unsigned char)*(p + 1)))
|
||||
errstr = "invalid";
|
||||
else
|
||||
masklen = (int)strtonum(p + 1, 0, 32, &errstr);
|
||||
|
Reference in New Issue
Block a user