aboutsummaryrefslogtreecommitdiff
path: root/rect.c
diff options
context:
space:
mode:
Diffstat (limited to 'rect.c')
-rw-r--r--rect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rect.c b/rect.c
index c78d9e0..66796f2 100644
--- 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