mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Cast toupper()'s argument to unsigned char.
ok guenther@
This commit is contained in:
parent
cb40a3d352
commit
75766ddb8a
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: mach.c,v 1.14 2014/12/04 06:12:33 deraadt Exp $ */
|
||||
/* $OpenBSD: mach.c,v 1.15 2015/10/24 18:51:40 mmcc Exp $ */
|
||||
/* $NetBSD: mach.c,v 1.5 1995/04/28 22:28:48 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
@ -687,7 +687,7 @@ tty_showboard(char *b)
|
||||
if (ch == 'q')
|
||||
printw("Qu");
|
||||
else
|
||||
printw("%c ", toupper(ch));
|
||||
printw("%c ", toupper((unsigned char)ch));
|
||||
if (HISET(b[i]))
|
||||
attroff(A_BOLD);
|
||||
if ((i + 1) % grid == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user