mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
8bit clean ctype fixes
This commit is contained in:
parent
280117ea07
commit
f1eecc5283
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17621
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user