Don't forget to count the end-of-file padding as part of the finished

file size.
This commit is contained in:
kientzle 2004-08-07 19:21:18 +00:00
parent 1ce8146dd9
commit 42609f208c
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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 */