From d9ea4a71b9438507fd28413259b22123df20f8ee Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 17 Apr 2014 18:57:58 +0200 Subject: [PATCH] secstore: fix gfile/pfile/rfile array sizes need to have one more entry for terminating nil --- sys/src/cmd/auth/secstore/secstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/auth/secstore/secstore.c b/sys/src/cmd/auth/secstore/secstore.c index 1a50e4535..bea3ec3d0 100644 --- a/sys/src/cmd/auth/secstore/secstore.c +++ b/sys/src/cmd/auth/secstore/secstore.c @@ -490,7 +490,7 @@ main(int argc, char **argv) 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";