diff options
author | 2015-10-24 17:48:36 +0000 | |
---|---|---|
committer | 2015-10-24 17:48:36 +0000 | |
commit | 0d35e948a853f74434da04353418b59283d04439 (patch) | |
tree | 629eecdf79e4ee5273b77873f635fe2e343fa858 | |
parent | Cast toupper()'s argument to unsigned char. (diff) | |
download | wireguard-openbsd-0d35e948a853f74434da04353418b59283d04439.tar.xz wireguard-openbsd-0d35e948a853f74434da04353418b59283d04439.zip |
Cast isprint()'s argument to unsigned char.
ok guenther@
-rw-r--r-- | games/hunt/huntd/answer.c | 4 |
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'; |