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:
nwhitehorn 2010-01-21 03:49:18 +00:00
parent 92755e4d60
commit b1a6e45406

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