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
@ -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 New Issue
Block a user