summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-24 17:55:02 +0000
committermmcc <mmcc@openbsd.org>2015-10-24 17:55:02 +0000
commit672e4212ced19e00ba7b81aa8e762795c7f1b695 (patch)
tree2adbcac9efa5e42a5dc775cde3dadab2e3afcd7d
parentCast ctype functions' arguments to unsigned char. (diff)
downloadwireguard-openbsd-672e4212ced19e00ba7b81aa8e762795c7f1b695.tar.xz
wireguard-openbsd-672e4212ced19e00ba7b81aa8e762795c7f1b695.zip
Cast islower()'s argument to unsigned char.
ok guenther@
-rw-r--r--games/hangman/getword.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hangman/getword.c b/games/hangman/getword.c
index 01fee069a57..8b437e9d6b1 100644
--- a/games/hangman/getword.c
+++ b/games/hangman/getword.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getword.c,v 1.8 2013/08/29 20:22:14 naddy Exp $ */
+/* $OpenBSD: getword.c,v 1.9 2015/10/24 17:55:02 mmcc Exp $ */
/* $NetBSD: getword.c,v 1.4 1995/03/23 08:32:45 cgd Exp $ */
/*
@@ -66,7 +66,7 @@ getword(void)
if (wordlen < MINLEN || wordlen > MAXLEN)
continue;
for (wp = Word; *wp; wp++)
- if (!islower(*wp))
+ if (!islower((unsigned char)*wp))
goto cont;
break;
cont: ;