summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-24 17:29:04 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-24 17:29:04 +0000
commit4321f691f9b3e87af026030977fb3ea14df3ee6a (patch)
tree20038bdfb69c804bdaf45da0053deccf83aacb46 /games
parenta0c81cb8f4aa7a33a9d4a4e2d9bb4b7923df8afb (diff)
Cast toupper()'s argument to unsigned char.
ok guenther@
Diffstat (limited to 'games')
-rw-r--r--games/bs/bs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c
index 517571af7be..2df4d739eb9 100644
--- a/games/bs/bs.c
+++ b/games/bs/bs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bs.c,v 1.28 2015/09/27 05:27:42 guenther Exp $ */
+/* $OpenBSD: bs.c,v 1.29 2015/10/24 17:29:03 mmcc Exp $ */
/*
* Copyright (c) 1986, Bruce Holloway
* All rights reserved.
@@ -241,7 +241,7 @@ static void intro(void)
if ((tmpname = getlogin()) != NULL)
{
(void)strlcpy(name, tmpname, sizeof(name));
- name[0] = toupper(name[0]);
+ name[0] = toupper((unsigned char)name[0]);
}
else
(void)strlcpy(name, dftname, sizeof(name));