shithub: riscv

Download patch

ref: f1727a674232f1a91dda8f18d7d7e4a1b486e5cf
parent: 79223a0e644af2ed3489f4574441cba1319bbb80
author: ppatience0 <[email protected]>
date: Fri Feb 8 13:01:31 EST 2013

ape: fix bug in access()

--- a/sys/src/ape/lib/ap/plan9/access.c
+++ b/sys/src/ape/lib/ap/plan9/access.c
@@ -53,7 +53,7 @@
 			if(tname == 0)
 				return -1;
 			memset(tname, 0, nname+32);
-			memcpy(tname, name, n);
+			memcpy(tname, name, nname);
 			memcpy(tname+nname, "/_AcChAcK", 9);
 			_ultoa(tname+nname+9, getpid());
 			fd = _CREATE(tname, ORCLOSE, 0666);