git: 9front

Download patch

ref: e51689b3d21710c77f7f48fdc30cf16e70fc5bed
parent: 1201f3f8bfa95490b4e9dea2a053260a2b36ed26
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Wed Sep 18 05:53:20 EDT 2013

faces: fix callerpc for realloctag in erealloc (thanks qrstuv)

--- a/sys/src/cmd/faces/util.c
+++ b/sys/src/cmd/faces/util.c
@@ -26,7 +26,7 @@
 		fprint(2, "out of memory allocating %ld\n", sz);
 		exits("mem");
 	}
-	setrealloctag(v, getcallerpc(&sz));
+	setrealloctag(v, getcallerpc(&v));
 	return v;
 }
 
--