mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Fix bug with printing out short archive entries,
incorrect padding
This commit is contained in:
parent
b2c473eaec
commit
f4c05c7fcb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5273
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue