diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-28 14:11:21 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-28 14:11:21 +0000 |
commit | f4c05c7fcb9a523c427e86d074368b579e030f0a (patch) | |
tree | bc992b22f433ac361e2e905ffde76ad870e85a64 /usr.bin | |
parent | b2c473eaec5e3fec72b465231189aef8052cc9be (diff) | |
download | src-f4c05c7fcb9a523c427e86d074368b579e030f0a.tar.gz src-f4c05c7fcb9a523c427e86d074368b579e030f0a.zip |
Fix bug with printing out short archive entries,
incorrect padding
Notes
Notes:
svn path=/head/; revision=5273
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/nm/nm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/nm/nm.c b/usr.bin/nm/nm.c index b4bf1c81ab68..ce7344eee304 100644 --- a/usr.bin/nm/nm.c +++ b/usr.bin/nm/nm.c @@ -258,8 +258,7 @@ show_archive(fname, fp) else { p = ar_head.ar_name; - for (i = 0; i < sizeof(ar_head.ar_name); i++) - if (*p && *p != ' ') + for (i = 0; i < sizeof(ar_head.ar_name) && p[i] && p[i] != ' '; i++) ar_name[i] = p[i]; ar_name[i] = 0; } |