mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Cast isblank()'s argument to unsigned char.
ok guenther@
This commit is contained in:
parent
866f718f2d
commit
8059d61abf
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: factor.c,v 1.21 2015/10/14 08:12:12 doug Exp $ */
|
||||
/* $OpenBSD: factor.c,v 1.22 2015/10/24 17:31:00 mmcc Exp $ */
|
||||
/* $NetBSD: factor.c,v 1.5 1995/03/23 08:28:07 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -109,7 +109,7 @@ main(int argc, char *argv[])
|
||||
exit (0);
|
||||
}
|
||||
buf[strcspn(buf, "\n")] = '\0';
|
||||
for (p = buf; isblank(*p); ++p)
|
||||
for (p = buf; isblank((unsigned char)*p); ++p)
|
||||
;
|
||||
if (*p == '\0')
|
||||
continue;
|
||||
@ -119,7 +119,7 @@ main(int argc, char *argv[])
|
||||
val = strtouq(buf, &p, 10);
|
||||
if (errno)
|
||||
err(1, "%s", buf);
|
||||
for (; isblank(*p); ++p)
|
||||
for (; isblank((unsigned char)*p); ++p)
|
||||
;
|
||||
if (*p != '\0')
|
||||
errx(1, "%s: illegal numeric format.", buf);
|
||||
|
Loading…
Reference in New Issue
Block a user