Fixup isdigit calls
This commit is contained in:
parent
12f75d1a38
commit
2ee6e45f36
@ -6,3 +6,4 @@ config.h.in
|
||||
config.log
|
||||
Makefile
|
||||
tags
|
||||
strace
|
||||
|
@ -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
|
||||
|
1
strace.c
1
strace.c
@ -30,6 +30,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include "defs.h"
|
||||
|
||||
#include <signal.h>
|
||||
|
1
svr4/.cvsignore
Normal file
1
svr4/.cvsignore
Normal file
@ -0,0 +1 @@
|
||||
Makefile
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user