diff options
author | Eric Andersen | 2000-12-13 01:52:39 +0000 |
---|---|---|
committer | Eric Andersen | 2000-12-13 01:52:39 +0000 |
commit | bd193a42a5624f0a72b5f99d554e9a8d2afc64cc (patch) | |
tree | 7aacebe98730fbfee623943425a100fd158ba48a /ls.c | |
parent | 77508b29fa63d99136fc09f00c5a2addd6331b4c (diff) | |
download | busybox-bd193a42a5624f0a72b5f99d554e9a8d2afc64cc.zip busybox-bd193a42a5624f0a72b5f99d554e9a8d2afc64cc.tar.gz |
Fix from Matt Kraai -- a better way to NULL terminate strings for the
my_* passwd and group routines. I should have thought of doing it
this way...
Diffstat (limited to 'ls.c')
-rw-r--r-- | ls.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -600,13 +600,11 @@ int list_single(struct dnode *dn) break; case LIST_ID_NAME: #ifdef BB_FEATURE_LS_USERNAME - memset(scratch, 0, sizeof(scratch)); my_getpwuid(scratch, dn->dstat.st_uid); if (*scratch) fprintf(stdout, "%-8.8s ", scratch); else fprintf(stdout, "%-8d ", dn->dstat.st_uid); - memset(scratch, 0, sizeof(scratch)); my_getgrgid(scratch, dn->dstat.st_gid); if (*scratch) fprintf(stdout, "%-8.8s", scratch); |