ref: 8ff1d5f66f09364f7dd620199b00c1483e5d74f7
parent: 384034736722f2c2cde1465b9cc66097f2d71c94
author: Ori Bernstein <[email protected]>
date: Sat Aug 23 17:19:58 EDT 2014
Use the correct length of the new value for sysctl We were using the pointer as the size of the new value. This is very wrong.
--- a/libstd/sys-freebsd.myr
+++ b/libstd/sys-freebsd.myr
@@ -767,7 +767,7 @@
oldp = o castto(byte#)
oldsz = a(o.len)
newp = new castto(byte#)
- newsz = a(new)
+ newsz = a(new.len)
/* all args already passed through a() or ar ptrs */
ret = syscall(Sys__sysctl, mibp, mibsz, oldp, oldsz, newp, newsz) castto(int)