summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-24 18:16:41 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-24 18:16:41 +0000
commit0582b773c20f1a0cec497176777a2a9cb6f1ca17 (patch)
tree3f013a50b4e45f8dc46d23dd1faed73eca3a328a /games
parentfd59d4e1c8112e07e127a30ddffce76bbc040b9b (diff)
Cast ctype functions' argument to unsigned char.
ok guenther@
Diffstat (limited to 'games')
-rw-r--r--games/sail/dr_1.c6
-rw-r--r--games/sail/misc.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/games/sail/dr_1.c b/games/sail/dr_1.c
index 058247e47fb..6b8505a67b6 100644
--- a/games/sail/dr_1.c
+++ b/games/sail/dr_1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dr_1.c,v 1.6 2009/10/27 23:59:27 deraadt Exp $ */
+/* $OpenBSD: dr_1.c,v 1.7 2015/10/24 18:16:40 mmcc Exp $ */
/* $NetBSD: dr_1.c,v 1.4 1995/04/24 12:25:10 cgd Exp $ */
/*
@@ -417,8 +417,8 @@ next()
if (tp == 0)
p = "Driver";
else {
- if (islower(*tp))
- *tp = toupper(*tp);
+ if (islower((unsigned char)*tp))
+ *tp = toupper((unsigned char)*tp);
p = tp;
}
(void) strncpy(bestship->file->captain, p,
diff --git a/games/sail/misc.c b/games/sail/misc.c
index bbf5353d74a..6812498ecf4 100644
--- a/games/sail/misc.c
+++ b/games/sail/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.6 2014/11/16 04:49:48 guenther Exp $ */
+/* $OpenBSD: misc.c,v 1.7 2015/10/24 18:16:40 mmcc Exp $ */
/* $NetBSD: misc.c,v 1.3 1995/04/22 10:37:03 cgd Exp $ */
/*
@@ -182,7 +182,7 @@ colours(sp)
if (sp->file->sink)
flag = '~';
flag = *countryname[capship(sp)->nationality];
- return sp->file->FS ? flag : tolower(flag);
+ return sp->file->FS ? flag : tolower((unsigned char)flag);
}
void