mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
Avoid passing negative values to isspace() on machines with signed chars.
This commit is contained in:
parent
e781c653dd
commit
de3b3c0e74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132202
@ -269,7 +269,7 @@ input(FILE *fp)
|
||||
NULL)
|
||||
err(1, (char *)NULL);
|
||||
while (fgets(buf, MAXLINELEN, fp)) {
|
||||
for (p = buf; *p && isspace(*p); ++p);
|
||||
for (p = buf; *p && isspace((unsigned char)*p); ++p);
|
||||
if (!*p)
|
||||
continue;
|
||||
if (!(p = strchr(p, '\n'))) {
|
||||
|
Loading…
Reference in New Issue
Block a user