shithub: mc

Download patch

ref: 675736f3cad40e5d1a69d0e14d56542785fe5e8a
parent: 56d1f1bccd4f943b43e5b8043dd63a17ceb2b2b1
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Feb 13 10:33:13 EST 2016

And correctly null terminate arg lists.

--- a/6/isel.c
+++ b/6/isel.c
@@ -434,9 +434,9 @@
 		savdi = locreg(ModeQ);
 		savcx = locreg(ModeQ);
 		len = loclit(sz, ModeQ);
-		g(s, Imov, locphysreg(Rrsi), savsi);
-		g(s, Imov, locphysreg(Rrdi), savdi);
-		g(s, Imov, locphysreg(Rrcx), savcx);
+		g(s, Imov, locphysreg(Rrsi), savsi, NULL);
+		g(s, Imov, locphysreg(Rrdi), savdi, NULL);
+		g(s, Imov, locphysreg(Rrcx), savcx, NULL);
 		sp = newr(s, from);
 		dp = newr(s, to);
 
@@ -453,9 +453,9 @@
 		else
 			g(s, Imov, dp, locphysreg(Rrdi), NULL);
 		g(s, Irepmovsb, NULL);
-		g(s, Imov, savsi, locphysreg(Rrsi));
-		g(s, Imov, savdi, locphysreg(Rrdi));
-		g(s, Imov, savcx, locphysreg(Rrcx));
+		g(s, Imov, savsi, locphysreg(Rrsi), NULL);
+		g(s, Imov, savdi, locphysreg(Rrdi), NULL);
+		g(s, Imov, savcx, locphysreg(Rrcx), NULL);
 	}
 
 }