Fix bug with printing out short archive entries,

incorrect padding
This commit is contained in:
Andrey A. Chernov 1994-12-28 14:11:21 +00:00
parent b2c473eaec
commit f4c05c7fcb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5273

View file

@ -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;
}