X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/3ff276f2cd88e6f3a6fe08f95f6147abbe3fcfd4..44f0599fe04cb578fb64bf17e54a7c19611f40c4:/midend.c diff --git a/midend.c b/midend.c index 7ef05cb..691c643 100644 --- 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);