Fixed problem with 8 character user names.

CVS patchset: 1566
CVS date: 1997/04/30 19:26:32
This commit is contained in:
ewt 1997-04-30 19:26:32 +00:00
parent 377e15bc2d
commit 8dc6da8e11
1 changed files with 2 additions and 0 deletions

View File

@ -556,6 +556,8 @@ static void printFileInfo(char * name, unsigned int size, unsigned short mode,
thisMonth = tstruct->tm_mon;
}
ownerfield[8] = groupfield[8] = '\0';
if (owner)
strncpy(ownerfield, owner, 8);
else