shithub: mc

Download patch

ref: 5f1737fb6f5aed7d909806208fda403f7a56039b
parent: 2f4ca4b7632f55634b7954ff2f0532677d6cfe11
author: Ori Bernstein <[email protected]>
date: Sun Aug 12 19:26:54 EDT 2012

Don't overflow the stack

    When we had logical nots, we just kept swappign the labels and
    passing down the same expression, instead of it's first arg.

--- a/6/simp.c
+++ b/6/simp.c
@@ -697,7 +697,7 @@
             simpcond(s, args[1], ltrue, lfalse);
             break;
         case Olnot:
-            simpcond(s, n, lfalse, ltrue);
+            simpcond(s, args[0], lfalse, ltrue);
             break;
         default:
             v = rval(s, n, NULL);