From 85255e44cbad2aa160322ee60ce8328c7725bdfd Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 17:44:49 +0000 Subject: [PATCH] Cast ctype functions' arguments to unsigned char. ok guenther@ --- games/monop/misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/monop/misc.c b/games/monop/misc.c index 67c5094bfef..c94e0f88f77 100644 --- a/games/monop/misc.c +++ b/games/monop/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.11 2010/05/10 08:53:12 nicm Exp $ */ +/* $OpenBSD: misc.c,v 1.12 2015/10/24 17:44:49 mmcc Exp $ */ /* $NetBSD: misc.c,v 1.4 1995/03/23 08:34:47 cgd Exp $ */ /* @@ -106,9 +106,9 @@ get_int(prompt) *sp = c; if (sp == buf) continue; - for (sp = buf; isspace(*sp); sp++) + for (sp = buf; isspace((unsigned char)*sp); sp++) ; - for (; isdigit(*sp); sp++) { + for (; isdigit((unsigned char)*sp); sp++) { snum = num; num = num * 10 + *sp - '0'; if (num < snum) { -- 2.20.1