mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Cast ctype functions' arguments to unsigned char.
ok guenther@
This commit is contained in:
parent
0d35e948a8
commit
d02bbd4a61
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user