shithub: mc

Download patch

ref: 33b4271bbebf8f9b6116253ef71100005ac48ce6
parent: 6aeba77ec718b9c0104a5b86da52cbdd1416011f
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
 	;;