summaryrefslogtreecommitdiff
path: root/games/factor/factor.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-24 17:31:01 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-24 17:31:01 +0000
commitb7fab0c71e233c4fe127fbd6e7056d5b4d466d19 (patch)
tree95aaca0bb84427c2d2eefaadf1c8b223a554f8e5 /games/factor/factor.c
parent4321f691f9b3e87af026030977fb3ea14df3ee6a (diff)
Cast isblank()'s argument to unsigned char.
ok guenther@
Diffstat (limited to 'games/factor/factor.c')
-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);