Fixed problem with 8 character user names.
authorewt <devnull@localhost>
Wed, 30 Apr 1997 19:26:32 +0000 (19:26 +0000)
committerewt <devnull@localhost>
Wed, 30 Apr 1997 19:26:32 +0000 (19:26 +0000)
CVS patchset: 1566
CVS date: 1997/04/30 19:26:32

query.c

diff --git a/query.c b/query.c
index 2576cae..60d04d5 100644 (file)
--- a/query.c
+++ b/query.c
@@ -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