artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb40a3d
)
Cast toupper()'s argument to unsigned char.
author
mmcc
<mmcc@openbsd.org>
Sat, 24 Oct 2015 18:51:40 +0000
(18:51 +0000)
committer
mmcc
<mmcc@openbsd.org>
Sat, 24 Oct 2015 18:51:40 +0000
(18:51 +0000)
ok guenther@
games/boggle/boggle/mach.c
patch
|
blob
|
history
diff --git
a/games/boggle/boggle/mach.c
b/games/boggle/boggle/mach.c
index
0eb7889
..
3b1424a
100644
(file)
--- a/
games/boggle/boggle/mach.c
+++ b/
games/boggle/boggle/mach.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mach.c,v 1.1
4 2014/12/04 06:12:33 deraadt Exp $
*/
+/* $OpenBSD: mach.c,v 1.1
5 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) {