From e33a57b703f11de067a400505e2425de3a0b5f9e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 17 Jul 2005 17:10:11 +0000 Subject: Quite a few instances of the Cardinal Error of Ctype were turned up by a grep I just did. Oops. [originally from svn r6113] --- samegame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samegame.c') diff --git a/samegame.c b/samegame.c index 810a8eb..4bb535d 100644 --- a/samegame.c +++ b/samegame.c @@ -291,9 +291,9 @@ static char *validate_desc(game_params *params, char *desc) char *q = p; int n; - if (!isdigit(*p)) + if (!isdigit((unsigned char)*p)) return "Not enough numbers in string"; - while (isdigit(*p)) p++; + while (isdigit((unsigned char)*p)) p++; if (i < area-1 && *p != ',') return "Expected comma after number"; -- cgit v1.1