~mdw
/
sgt
/
puzzles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7c352f
)
The GTK `--generate' option didn't validate the game parameters. It
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 23 May 2005 11:13:39 +0000
(11:13 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 23 May 2005 11:13:39 +0000
(11:13 +0000)
does now.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5836
cda61777
-01e9-0310-a592-
d414129be87e
gtk.c
patch
|
blob
|
blame
|
history
diff --git
a/gtk.c
b/gtk.c
index
1e32c6a
..
859231f
100644
(file)
--- a/
gtk.c
+++ b/
gtk.c
@@
-1280,7
+1280,10
@@
int main(int argc, char **argv)
if ( (seed = strchr(params, '#')) != NULL )
*seed++ = '\0';
thegame.decode_params(par, params);
- } else {
+ }
+ if ((error = thegame.validate_params(par)) != NULL) {
+ fprintf(stderr, "%s: %s\n", pname, error);
+ return 1;
}
parstr = thegame.encode_params(par, FALSE);