Open
Description
It seems it updates the file in place leaving the old content in the tail.
zfile_output calls fopen (self->fullname, "r+b");
which according to docs:
r+ or rb+ or r+b: Open file for update (reading and writing).
To write the new file without a tail of old data we'd need:
w+ or wb+ or w+b
Truncate to zero length or create file for update.
However the old behaviour is probably also needed? Perhaps we need to add another method like zfile_output_truncate
?
Metadata
Metadata
Assignees
Labels
No labels