Fixed encoding of empty files. Arguments to is_size_valid()

were in wrong order in block_encoder.c.
This commit is contained in:
Lasse Collin 2008-01-08 13:36:29 +02:00
parent 9080267603
commit a751126dbb
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ block_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
if (!options->has_eopm && options->uncompressed_size == 0) { if (!options->has_eopm && options->uncompressed_size == 0) {
// Also Compressed Size must also be zero if it has been // Also Compressed Size must also be zero if it has been
// given to us. // given to us.
if (!is_size_valid(options->compressed_size, 0)) if (!is_size_valid(0, options->compressed_size))
return LZMA_PROG_ERROR; return LZMA_PROG_ERROR;
next->coder->sequence = SEQ_CHECK_FINISH; next->coder->sequence = SEQ_CHECK_FINISH;