diff options
author | rgl <devnull@localhost> | 2021-03-11 19:37:44 +0100 |
---|---|---|
committer | rgl <devnull@localhost> | 2021-03-11 19:37:44 +0100 |
commit | 2fc22d067df9c25c0339221b2cf5fe0244ef05ef (patch) | |
tree | fb8732747bb7b785c759df033499adfdb0dd595d | |
parent | 9162533526a8e92a3b111ef2e63f87ae23ad8134 (diff) | |
download | plan9front-2fc22d067df9c25c0339221b2cf5fe0244ef05ef.tar.xz |
correct off-by-one nul termination.
-rw-r--r-- | sys/src/cmd/aux/cpuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/cpuid.c b/sys/src/cmd/aux/cpuid.c index 806099fd3..76f0f8a88 100644 --- a/sys/src/cmd/aux/cpuid.c +++ b/sys/src/cmd/aux/cpuid.c @@ -45,7 +45,7 @@ func0(ulong) ((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); } |