summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-24 17:48:37 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-24 17:48:37 +0000
commitccbadeff0bfc77a6b5a41762e32a1a215330c62b (patch)
treebce3de7c521912c04921c3eafa082d2ee5089c66
parent3b994cdef316d0e93ff3e3e6b8a93f6e0ff6fe0f (diff)
Cast isprint()'s argument to unsigned char.
ok guenther@
-rw-r--r--games/hunt/huntd/answer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hunt/huntd/answer.c b/games/hunt/huntd/answer.c
index 19b519934a6..2f42ef31b3c 100644
--- a/games/hunt/huntd/answer.c
+++ b/games/hunt/huntd/answer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: answer.c,v 1.14 2015/08/22 14:47:41 deraadt Exp $ */
+/* $OpenBSD: answer.c,v 1.15 2015/10/24 17:48:36 mmcc Exp $ */
/* $NetBSD: answer.c,v 1.3 1997/10/10 16:32:50 lukem Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -188,7 +188,7 @@ answer_next(sp)
*/
sp->name[NAMELEN] = '\0';
for (cp1 = cp2 = sp->name; *cp1 != '\0'; cp1++)
- if (isprint(*cp1) || *cp1 == ' ')
+ if (isprint((unsigned char)*cp1) || *cp1 == ' ')
*cp2++ = *cp1;
*cp2 = '\0';