~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Until now, Same Game has been the only puzzle in this collection
[sgt/puzzles]
/
flip.c
diff --git
a/flip.c
b/flip.c
index
2ec16ba
..
6ccd872
100644
(file)
--- a/
flip.c
+++ b/
flip.c
@@
-116,11
+116,11
@@
static game_params *dup_params(game_params *params)
static void decode_params(game_params *ret, char const *string)
{
ret->w = ret->h = atoi(string);
static void decode_params(game_params *ret, char const *string)
{
ret->w = ret->h = atoi(string);
- while (*string && isdigit(*string)) string++;
+ while (*string && isdigit(
(unsigned char)
*string)) string++;
if (*string == 'x') {
string++;
ret->h = atoi(string);
if (*string == 'x') {
string++;
ret->h = atoi(string);
- while (*string && isdigit(*string)) string++;
+ while (*string && isdigit(
(unsigned char)
*string)) string++;
}
if (*string == 'r') {
string++;
}
if (*string == 'r') {
string++;