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
(from parent 1:
d7588e6
)
Missing quit on error was leading to an assertion failure on some
author
Simon Tatham
<anakin@pobox.com>
Wed, 6 Jul 2005 21:24:28 +0000
(21:24 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 6 Jul 2005 21:24:28 +0000
(21:24 +0000)
types of incorrectly formatted save file.
[originally from svn r6079]
midend.c
patch
|
blob
|
history
diff --git
a/midend.c
b/midend.c
index 7ef05cb85e6c353dce6b46e232f22b94d1c424ca..691c6434d2d13afb03ea4c99a3472a6bba217944 100644
(file)
--- a/
midend.c
+++ b/
midend.c
@@
-1350,6
+1350,7
@@
char *midend_deserialise(midend_data *me,
if (key[8] != ':') {
if (started)
ret = "Data was incorrectly formatted for a saved game file";
+ goto cleanup;
}
len = strcspn(key, ": ");
assert(len <= 8);