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:
9c54e18
)
The GTK `--generate' option didn't validate the game parameters. It
author
Simon Tatham
<anakin@pobox.com>
Mon, 23 May 2005 11:13:39 +0000
(11:13 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Mon, 23 May 2005 11:13:39 +0000
(11:13 +0000)
does now.
[originally from svn r5836]
gtk.c
patch
|
blob
|
history
diff --git
a/gtk.c
b/gtk.c
index 1e32c6a12cd1ca271bba8c8fd5519bbbf18d2f1e..859231f9bce9d2d33c9827161ae2ed2b26af9f5a 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);