Don't forget to count the end-of-file padding as part of the finished
file size.
This commit is contained in:
parent
1ce8146dd9
commit
42609f208c
@ -308,6 +308,7 @@ archive_compressor_gzip_finish(struct archive *a)
|
||||
/* Write the last block */
|
||||
ret = (a->client_writer)(a, a->client_data, state->compressed,
|
||||
block_length);
|
||||
a->raw_position += ret;
|
||||
|
||||
/* Cleanup: shut down compressor, release memory, etc. */
|
||||
cleanup:
|
||||
|
@ -195,6 +195,7 @@ archive_compressor_none_finish(struct archive *a)
|
||||
}
|
||||
ret = (a->client_writer)(a, a->client_data, state->buffer,
|
||||
block_length);
|
||||
a->raw_position += ret;
|
||||
}
|
||||
|
||||
/* Close the output */
|
||||
|
Loading…
Reference in New Issue
Block a user