chiark / gitweb /
Quite a few instances of the Cardinal Error of Ctype were turned up
[sgt-puzzles.git] / sixteen.c
index 0e4f8a8cc66d306bbc586c7d624d24c1a0cc6273..457e9c9c4a7961ed44e6fa2872d1b49d21d21bc7 100644 (file)
--- 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);