mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01: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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user