From a4b69dea965fb8ce142bd205602d649480b283d3 Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 17:52:00 +0000 Subject: Cast ctype functions' arguments to unsigned char. ok guenther@ --- games/mille/move.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'games/mille') diff --git a/games/mille/move.c b/games/mille/move.c index de0e0dc3ffd..374e3c3b520 100644 --- a/games/mille/move.c +++ b/games/mille/move.c @@ -1,4 +1,4 @@ -/* $OpenBSD: move.c,v 1.13 2014/11/16 04:49:48 guenther Exp $ */ +/* $OpenBSD: move.c,v 1.14 2015/10/24 17:51:59 mmcc Exp $ */ /* $NetBSD: move.c,v 1.4 1995/03/24 05:01:57 cgd Exp $ */ /* @@ -345,9 +345,9 @@ getmove() refresh(); while ((c = readch()) == killchar() || c == erasechar()) continue; - if (islower(c)) - c = toupper(c); - if (isprint(c) && !isspace(c)) { + if (islower((unsigned char)c)) + c = toupper((unsigned char)c); + if (isprint((unsigned char)c) && !isspace((unsigned char)c)) { addch(c); refresh(); } -- cgit v1.2.3