X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/4d08de49555f22d1fcf2d9977a19591a0f465b2d..aafaa7fbd122f8109c1a7d99faf74d4892bf22de:/sixteen.c?ds=sidebyside diff --git a/sixteen.c b/sixteen.c index 0e4f8a8..457e9c9 100644 --- a/sixteen.c +++ b/sixteen.c @@ -100,7 +100,7 @@ static void decode_params(game_params *ret, char const *string) { ret->w = ret->h = atoi(string); ret->movetarget = 0; - while (*string && isdigit(*string)) string++; + while (*string && isdigit((unsigned char)*string)) string++; if (*string == 'x') { string++; ret->h = atoi(string);