summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-08-15 22:55:53 +0000
committerache <ache@FreeBSD.org>1996-08-15 22:55:53 +0000
commit52d9ff24a9291df45fce279279cae678d063f532 (patch)
tree1f485cad69851f005f0333cecfff9c07e1d10ffc /gnu/usr.bin
parent78da01bc666fdc8c04b26e1830e0a488f4b56097 (diff)
downloadFreeBSD-src-52d9ff24a9291df45fce279279cae678d063f532.zip
FreeBSD-src-52d9ff24a9291df45fce279279cae678d063f532.tar.gz
8bit clean ctype fixes
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/tar/gnu.c6
-rw-r--r--gnu/usr.bin/tar/list.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/tar/gnu.c b/gnu/usr.bin/tar/gnu.c
index ef51f2b..d3a0446 100644
--- a/gnu/usr.bin/tar/gnu.c
+++ b/gnu/usr.bin/tar/gnu.c
@@ -146,12 +146,12 @@ read_dir_file ()
strp[-1] = '\0';
strp = buf;
dev = atol (strp);
- while (isdigit (*strp))
+ while (isdigit ((unsigned char) *strp))
strp++;
ino = atol (strp);
- while (isspace (*strp))
+ while (isspace ((unsigned char) *strp))
strp++;
- while (isdigit (*strp))
+ while (isdigit ((unsigned char) *strp))
strp++;
strp++;
add_dir (un_quote_string (strp), dev, ino, (char *) 0);
diff --git a/gnu/usr.bin/tar/list.c b/gnu/usr.bin/tar/list.c
index 28e6ab3..79d2654 100644
--- a/gnu/usr.bin/tar/list.c
+++ b/gnu/usr.bin/tar/list.c
@@ -513,7 +513,7 @@ from_oct (digs, where)
{
register long value;
- while (isspace (*where))
+ while (isspace ((unsigned char) *where))
{ /* Skip spaces */
where++;
if (--digs <= 0)
@@ -526,7 +526,7 @@ from_oct (digs, where)
--digs;
}
- if (digs > 0 && *where && !isspace (*where))
+ if (digs > 0 && *where && !isspace ((unsigned char) *where))
return -1; /* Ended on non-space/nul */
return value;
OpenPOWER on IntegriCloud