shithub: riscv

Download patch

ref: 528fa0acfa3532dee4a50fca1ae49d147403edfc
parent: 059b863fab96cf3ba65e74ad67221eec6cbcbe0c
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Jun 7 16:11:15 EDT 2023

evdump: fix the fix

--- a/sys/src/cmd/evdump.c
+++ b/sys/src/cmd/evdump.c
@@ -100,7 +100,7 @@
 {
 	int i;
 
-	for(i = 0; i <= nk; i++)
+	for(i = 0; i < nk; i++)
 		Bprint(kbmap, "%d\t%d\t%d\n", k[i].e, k[i].c, k[i].r);
 	Bflush(kbmap);
 
@@ -112,7 +112,7 @@
 {
 	int i;
 
-	for(i = 0; i <= nk; i++)
+	for(i = 0; i < nk; i++)
 		Bprint(kbmap, "%d\t%d\t%d\n", k[i].e, k[i].c, Kmbase+i);
 	Bflush(kbmap);
 }