diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-03-03 07:13:40 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-03-03 07:13:40 +0000 |
| commit | e3e6bbd6c1e2bdcd0bbb37ac52085a9d6bb65a83 (patch) | |
| tree | 79f397b5ddd638ca5098e9dbfe5e8fd61700bcb3 /gnu | |
| parent | 129ec01ab643ecb239e8623882401f147563da6d (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/patch/inp.c | 8 | ||||
| -rw-r--r-- | gnu/usr.bin/patch/util.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/gnu/usr.bin/patch/inp.c b/gnu/usr.bin/patch/inp.c index 63eb5a409452..f1a7e7932fbd 100644 --- a/gnu/usr.bin/patch/inp.c +++ b/gnu/usr.bin/patch/inp.c @@ -1,4 +1,4 @@ -/* $Header: /home/ncvs/src/gnu/usr.bin/patch/inp.c,v 1.3 1995/05/30 05:02:31 rgrimes Exp $ +/* $Header: /home/ncvs/src/gnu/usr.bin/patch/inp.c,v 1.3.6.1 1997/03/17 22:32:26 jmg Exp $ * * Log: inp.c,v * @@ -364,11 +364,11 @@ char *string; if (revision == Nullch) return TRUE; patlen = strlen(revision); - if (strnEQ(string,revision,patlen) && isspace(string[patlen])) + if (strnEQ(string,revision,patlen) && isspace((unsigned char)string[patlen])) return TRUE; for (s = string; *s; s++) { - if (isspace(*s) && strnEQ(s+1, revision, patlen) && - isspace(s[patlen+1] )) { + if (isspace((unsigned char)*s) && strnEQ(s+1, revision, patlen) && + isspace((unsigned char)s[patlen+1] )) { return TRUE; } } diff --git a/gnu/usr.bin/patch/util.c b/gnu/usr.bin/patch/util.c index 6ab6ecf21fec..258490bcb8f3 100644 --- a/gnu/usr.bin/patch/util.c +++ b/gnu/usr.bin/patch/util.c @@ -80,9 +80,9 @@ char *from, *to; while (stat(bakname, &filestat) == 0 && to_device == filestat.st_dev && to_inode == filestat.st_ino) { /* Skip initial non-lowercase chars. */ - for (s=simplename; *s && !islower(*s); s++) ; + for (s=simplename; *s && !islower((unsigned char)*s); s++) ; if (*s) - *s = toupper(*s); + *s = toupper((unsigned char)*s); else Strcpy(simplename, simplename+1); } @@ -376,7 +376,7 @@ int assume_exists; if (!at) return Nullch; - while (isspace(*at)) + while (isspace((unsigned char)*at)) at++; #ifdef DEBUGGING if (debug & 128) @@ -387,7 +387,7 @@ int assume_exists; name = fullname = t = savestr(at); /* Strip off up to `sleading' leading slashes and null terminate. */ - for (; *t && !isspace(*t); t++) + for (; *t && !isspace((unsigned char)*t); t++) if (*t == '/') if (--sleading >= 0) name = t+1; |
