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:
parent
b2edbc662e
commit
deccdf0e17
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user