chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ea3c92
)
Ahem. Seed validation was completely broken.
author
Simon Tatham
<anakin@pobox.com>
Wed, 12 May 2004 18:53:47 +0000
(18:53 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 12 May 2004 18:53:47 +0000
(18:53 +0000)
[originally from svn r4222]
rect.c
patch
|
blob
|
history
diff --git
a/rect.c
b/rect.c
index c78d9e0b816dab204ad97b596870fc36864cb527..66796f251086bbceb57e67bdd19a7202f213cc90 100644
(file)
--- a/
rect.c
+++ b/
rect.c
@@
-672,7
+672,7
@@
char *validate_seed(game_params *params, char *seed)
} else if (n == '_') {
/* do nothing */;
} else if (n > '0' && n <= '9') {
- squares
+= atoi(seed-1)
;
+ squares
++
;
while (*seed >= '0' && *seed <= '9')
seed++;
} else