8bit clean ctype fixes

This commit is contained in:
Andrey A. Chernov 1996-08-15 22:55:53 +00:00
parent 280117ea07
commit f1eecc5283
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17621
2 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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;