summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/patch/util.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-10-23 02:44:23 +0000
committerache <ache@FreeBSD.org>1997-10-23 02:44:23 +0000
commit11e6b28c316cc704cbd4a44e14f3a18fb508d03c (patch)
tree675f701bf244823fd2214e20c82e5b7d9ae4b676 /gnu/usr.bin/patch/util.c
parentfdcf922d4ffc0149c3e7868da24182f4da36b501 (diff)
downloadFreeBSD-src-11e6b28c316cc704cbd4a44e14f3a18fb508d03c.zip
FreeBSD-src-11e6b28c316cc704cbd4a44e14f3a18fb508d03c.tar.gz
Add (unsigned char) cast to ctype macros
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 6ab6ecf..258490b 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;
OpenPOWER on IntegriCloud