shithub: riscv

Download patch

ref: 171aafcc229b0b2d1fb058d09eb4170008f91eb6
parent: 8556b8dae158c631725184a9243c3493af15c8b6
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;
 }
 
--