mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
getcell-still-stupid-20060925
FIXES 40829 should be fixed a third time too
This commit is contained in:
parent
9a5cfc73bc
commit
9bd3d0926b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user