shithub: riscv

Download patch

ref: d9ea4a71b9438507fd28413259b22123df20f8ee
parent: 66aa9490398fa43d1bbec73f0e12899582a73fe7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Apr 17 14:57:58 EDT 2014

secstore: fix gfile/pfile/rfile array sizes

need to have one more entry for terminating nil

--- a/sys/src/cmd/auth/secstore/secstore.c
+++ b/sys/src/cmd/auth/secstore/secstore.c
@@ -490,7 +490,7 @@
 	int chpass = 0, pass_stdin = 0, pass_nvram = 0, rc;
 	int ngfile = 0, npfile = 0, nrfile = 0, Gflag[MAXFILES+1];
 	char *serve, *tcpserve, *user;
-	char *gfile[MAXFILES], *pfile[MAXFILES], *rfile[MAXFILES];
+	char *gfile[MAXFILES+1], *pfile[MAXFILES+1], *rfile[MAXFILES+1];
 	AuthConn *c;
 
 	serve = "$auth";