shithub: puzzles

Download patch

ref: 9885a86a27cec2ce38b1022e3a15b8c808e70db8
parent: 0589681d9dca09548023ddbd0b8eab5be21d8ce8
author: Simon Tatham <anakin@pobox.com>
date: Mon Mar 26 06:24:25 EDT 2007

Er, and now do that _without_ introducing further segfaults.

[originally from svn r7409]

--- a/rect.c
+++ b/rect.c
@@ -1692,7 +1692,7 @@
             /*
              * If we've succeeded, then terminate the loop.
              */
-            if (ret)
+            if (ret == 1)
                 break;
         }