code: plan9front

Download patch

ref: 2fc22d067df9c25c0339221b2cf5fe0244ef05ef
parent: 9162533526a8e92a3b111ef2e63f87ae23ad8134
author: rgl <devnull@localhost>
date: Thu Mar 11 14:37:44 EST 2021

correct off-by-one nul termination.

--- a/sys/src/cmd/aux/cpuid.c
+++ b/sys/src/cmd/aux/cpuid.c
@@ -45,7 +45,7 @@
 	((ulong *) buf)[0] = r.bx;
 	((ulong *) buf)[1] = r.dx;
 	((ulong *) buf)[2] = r.cx;
-	buf[13] = 0;
+	buf[12] = 0;
 	Bprint(out, "vendor %s\n", buf);
 }