shithub: mc

Download patch

ref: a6fa17ca671112998242b70854f4692e2bd30307
parent: 4c776943124502b2249a7e42a3737122dfca79e6
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jan 1 10:54:38 EST 2015

Align brk() calls.

--- a/libstd/syswrap+plan9.myr
+++ b/libstd/syswrap+plan9.myr
@@ -190,6 +190,7 @@
 
 	oldp = sys.curbrk
 	endp = (sys.curbrk castto(intptr)) + (sz castto(intptr))
+	endp = (endp + 4095) & ~4095
 	if sys.brk_(endp castto(byte#)) < 0
 		-> Failmem
 	;;