artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d02bbd4
)
Cast islower()'s argument to unsigned char.
author
mmcc
<mmcc@openbsd.org>
Sat, 24 Oct 2015 17:55:02 +0000
(17:55 +0000)
committer
mmcc
<mmcc@openbsd.org>
Sat, 24 Oct 2015 17:55:02 +0000
(17:55 +0000)
ok guenther@
games/hangman/getword.c
patch
|
blob
|
history
diff --git
a/games/hangman/getword.c
b/games/hangman/getword.c
index
01fee06
..
8b437e9
100644
(file)
--- 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: ;