Fixup isdigit calls

This commit is contained in:
Wichert Akkerman 2000-02-18 15:36:12 +00:00
parent 12f75d1a38
commit 2ee6e45f36
5 changed files with 11 additions and 3 deletions

View File

@ -6,3 +6,4 @@ config.h.in
config.log
Makefile
tags
strace

View File

@ -1,3 +1,8 @@
1999-12-27 Morten Welinder <terra@diku.dk>
* syscall.c (lookup_signal, lookup_desc): isdigit requires an
_unsigned_ char parameter.
2000-02-14 Wichert Akkerman <wakkerma@debian.org>
* S390 updates

View File

@ -30,6 +30,7 @@
* $Id$
*/
#include <sys/types.h>
#include "defs.h"
#include <signal.h>

1
svr4/.cvsignore Normal file
View File

@ -0,0 +1 @@
Makefile

View File

@ -265,12 +265,12 @@ char *s;
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 @@ static int
lookup_desc(s)
char *s;
{
if (s && *s && isdigit(*s))
if (s && *s && isdigit((unsigned char)*s))
return atoi(s);
return -1;
}