From 0d35e948a853f74434da04353418b59283d04439 Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 17:48:36 +0000 Subject: [PATCH] Cast isprint()'s argument to unsigned char. ok guenther@ --- games/hunt/huntd/answer.c | 4 ++-- 1 file 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'; -- 2.20.1