summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-24 17:52:00 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-24 17:52:00 +0000
commita4b69dea965fb8ce142bd205602d649480b283d3 (patch)
treed1e6892d3f43ede4e4ae0b7c7ed617d9188cefae /games
parentccbadeff0bfc77a6b5a41762e32a1a215330c62b (diff)
Cast ctype functions' arguments to unsigned char.
ok guenther@
Diffstat (limited to 'games')
-rw-r--r--games/mille/move.c8
1 files 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();
}