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

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