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
92755e4d60
commit
b1a6e45406
@ -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