From 672e4212ced19e00ba7b81aa8e762795c7f1b695 Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 17:55:02 +0000 Subject: [PATCH] Cast islower()'s argument to unsigned char. ok guenther@ --- games/hangman/getword.c | 4 ++-- 1 file 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: ; -- 2.20.1