From d02bbd4a6175d8e06e740d0cd1ff1ca0964fcfd2 Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 17:51:59 +0000 Subject: [PATCH] Cast ctype functions' arguments to unsigned char. ok guenther@ --- games/mille/move.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); } -- 2.20.1