git: 9front

Download patch

ref: 31a1f93e63b9244b373ccdd6df83c3141ac5f4df
parent: a4ab99da40e0e86aa61d145e038066e8210c27a9
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);
 }
 
--