diff options
author | mmcc <mmcc@openbsd.org> | 2015-10-24 17:44:49 +0000 |
---|---|---|
committer | mmcc <mmcc@openbsd.org> | 2015-10-24 17:44:49 +0000 |
commit | 85255e44cbad2aa160322ee60ce8328c7725bdfd (patch) | |
tree | ddbafcc8c12b74358c24cf63cd99efed7d55f7e7 /games/monop/misc.c | |
parent | Cast ctype functions' arguments to unsigned char. (diff) | |
download | wireguard-openbsd-85255e44cbad2aa160322ee60ce8328c7725bdfd.tar.xz wireguard-openbsd-85255e44cbad2aa160322ee60ce8328c7725bdfd.zip |
Cast ctype functions' arguments to unsigned char.
ok guenther@
Diffstat (limited to 'games/monop/misc.c')
-rw-r--r-- | games/monop/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/monop/misc.c b/games/monop/misc.c index 67c5094bfef..c94e0f88f77 100644 --- a/games/monop/misc.c +++ b/games/monop/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.11 2010/05/10 08:53:12 nicm Exp $ */ +/* $OpenBSD: misc.c,v 1.12 2015/10/24 17:44:49 mmcc Exp $ */ /* $NetBSD: misc.c,v 1.4 1995/03/23 08:34:47 cgd Exp $ */ /* @@ -106,9 +106,9 @@ get_int(prompt) *sp = c; if (sp == buf) continue; - for (sp = buf; isspace(*sp); sp++) + for (sp = buf; isspace((unsigned char)*sp); sp++) ; - for (; isdigit(*sp); sp++) { + for (; isdigit((unsigned char)*sp); sp++) { snum = num; num = num * 10 + *sp - '0'; if (num < snum) { |