Fix a bug when printing attributes from multiple files: buflen could be

longer than the length of the current attribute if the buffer were reused
and previously longer, so bits of the previous, longer attribute would be
written. Fix this by using the actual attribute length.
This commit is contained in:
Nathan Whitehorn 2010-01-21 03:49:18 +00:00
parent b2edbc662e
commit deccdf0e17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202734

View file

@ -269,7 +269,7 @@ main(int argc, char *argv[])
printf("\n");
continue;
} else {
fwrite(buf, buflen, 1, stdout);
fwrite(buf, error, 1, stdout);
printf("\n");
continue;
}