shithub: puzzles

Download patch

ref: d5fe59b25bf55f86889abc893c6bdea5b3d74472
parent: d7588e60487337b6d0ca4a6280a812804afe08e6
author: Simon Tatham <anakin@pobox.com>
date: Wed Jul 6 17:24:28 EDT 2005

Missing quit on error was leading to an assertion failure on some
types of incorrectly formatted save file.

[originally from svn r6079]

--- a/midend.c
+++ b/midend.c
@@ -1350,6 +1350,7 @@
         if (key[8] != ':') {
             if (started)
                 ret = "Data was incorrectly formatted for a saved game file";
+	    goto cleanup;
         }
         len = strcspn(key, ": ");
         assert(len <= 8);