ref: da4efec1224b0c65f512b933bc396761c7a114e6
parent: 9631e1092718fe325abf3ec55375687eb4cc9765
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";
--
⑨