From 9bd3d0926bbdc8ee9dedfe17bd137d5327e45a62 Mon Sep 17 00:00:00 2001 From: Ken Aaker Date: Mon, 25 Sep 2006 16:04:12 +0000 Subject: [PATCH] getcell-still-stupid-20060925 FIXES 40829 should be fixed a third time too --- src/auth/cellconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/cellconfig.c b/src/auth/cellconfig.c index a88dfd44f4..eba0ac4ee0 100644 --- a/src/auth/cellconfig.c +++ b/src/auth/cellconfig.c @@ -496,7 +496,8 @@ GetCellUnix(struct afsconf_dir *adir) *p = '\0'; adir->cellName = (char *)malloc(sz + 1); - strncpy(adir->cellName, tbuffer, sz); + memset(adir->cellName, 0, sz+1); + strncpy(adir->cellName, tbuffer, sz); } } return 0;