summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/patch/util.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-10-23 02:44:23 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-10-23 02:44:23 +0000
commit5a90c8dbf2aedfdb4266bd15645d86a27c0f533f (patch)
treea001a0f23f9e9e871fe4886f004e5bdd1350eefc /gnu/usr.bin/patch/util.c
parent2e6bafc0a24ce6e91ca12bffc251e7063f0d10c1 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/patch/util.c')
-rw-r--r--gnu/usr.bin/patch/util.c8
1 files changed, 4 insertions, 4 deletions
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;