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] --- pattern.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pattern.c') diff --git a/pattern.c b/pattern.c index 3f2d65e..3d5c11f 100644 --- a/pattern.c +++ b/pattern.c @@ -106,11 +106,11 @@ static void decode_params(game_params *ret, char const *string) char const *p = string; ret->w = atoi(p); - while (*p && isdigit(*p)) p++; + while (*p && isdigit((unsigned char)*p)) p++; if (*p == 'x') { p++; ret->h = atoi(p); - while (*p && isdigit(*p)) p++; + while (*p && isdigit((unsigned char)*p)) p++; } else { ret->h = ret->w; } -- cgit v1.1