getcell-still-stupid-20060925

FIXES 40829

should be fixed a third time too
This commit is contained in:
Ken Aaker 2006-09-25 16:04:12 +00:00 committed by Derrick Brashear
parent 9a5cfc73bc
commit 9bd3d0926b

View File

@ -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;