Fixup isdigit calls
diff --git a/syscall.c b/syscall.c
index ce0ee30..a52677c 100644
--- a/syscall.c
+++ b/syscall.c
@@ -265,12 +265,12 @@
int i;
char buf[32];
- if (s && *s && isdigit(*s))
+ if (s && *s && isdigit((unsigned char)*s))
return atoi(s);
strcpy(buf, s);
s = buf;
for (i = 0; s[i]; i++)
- s[i] = toupper(s[i]);
+ s[i] = toupper((unsigned char)(s[i]));
if (strncmp(s, "SIG", 3) == 0)
s += 3;
for (i = 0; i <= NSIG; i++) {
@@ -291,7 +291,7 @@
lookup_desc(s)
char *s;
{
- if (s && *s && isdigit(*s))
+ if (s && *s && isdigit((unsigned char)*s))
return atoi(s);
return -1;
}