mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 15:41:30 -07:00
Quite a few instances of the Cardinal Error of Ctype were turned up
by a grep I just did. Oops. [originally from svn r6113]
This commit is contained in:
2
cube.c
2
cube.c
@ -285,7 +285,7 @@ static void decode_params(game_params *ret, char const *string)
|
||||
default: break;
|
||||
}
|
||||
ret->d1 = ret->d2 = atoi(string);
|
||||
while (*string && isdigit(*string)) string++;
|
||||
while (*string && isdigit((unsigned char)*string)) string++;
|
||||
if (*string == 'x') {
|
||||
string++;
|
||||
ret->d2 = atoi(string);
|
||||
|
Reference in New Issue
Block a user