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:
@@ -155,7 +155,7 @@ bridge_interfaces(int s, const char *prefix)
|
||||
err(1, "strdup");
|
||||
/* replace the prefix with whitespace */
|
||||
for (p = pad; *p != '\0'; p++) {
|
||||
if(isprint(*p))
|
||||
if(isprint((unsigned char)*p))
|
||||
*p = ' ';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user