summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-24 17:31:00 +0000
committermmcc <mmcc@openbsd.org>2015-10-24 17:31:00 +0000
commit8059d61abfef30f2c788403270586fcd548133fd (patch)
treebe969a62ae809868ffd71e8ec7ab37cf372e66f7
parentCast toupper()'s argument to unsigned char. (diff)
downloadwireguard-openbsd-8059d61abfef30f2c788403270586fcd548133fd.tar.xz
wireguard-openbsd-8059d61abfef30f2c788403270586fcd548133fd.zip
Cast isblank()'s argument to unsigned char.
ok guenther@
-rw-r--r--games/factor/factor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/factor/factor.c b/games/factor/factor.c
index 4507ce9c3e5..56cc0dc3d14 100644
--- a/games/factor/factor.c
+++ b/games/factor/factor.c
@@ -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);