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] --- netslide.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'netslide.c') diff --git a/netslide.c b/netslide.c index 1962d92..206535b 100644 --- a/netslide.c +++ b/netslide.c @@ -213,16 +213,16 @@ static void decode_params(game_params *ret, char const *string) ret->movetarget = 0; ret->width = atoi(p); - while (*p && isdigit(*p)) p++; + while (*p && isdigit((unsigned char)*p)) p++; if (*p == 'x') { p++; ret->height = atoi(p); - while (*p && isdigit(*p)) p++; + while (*p && isdigit((unsigned char)*p)) p++; if ( (ret->wrapping = (*p == 'w')) != 0 ) p++; if (*p == 'b') { ret->barrier_probability = atof(++p); - while (*p && (isdigit(*p) || *p == '.')) p++; + while (*p && (isdigit((unsigned char)*p) || *p == '.')) p++; } if (*p == 'm') { ret->movetarget = atoi(++p); -- cgit v1.1