aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/block_encoder.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-01-08 13:36:29 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-01-08 13:36:29 +0200
commita751126dbb656767ed4666cf0e5d3e17349d93d1 (patch)
tree7694034005e9e7804109a424bea7e2f563669fb7 /src/liblzma/common/block_encoder.c
parentAdded a few test files. (diff)
downloadxz-a751126dbb656767ed4666cf0e5d3e17349d93d1.tar.xz
Fixed encoding of empty files. Arguments to is_size_valid()
were in wrong order in block_encoder.c.
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/block_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/block_encoder.c b/src/liblzma/common/block_encoder.c
index 77ff78ea..22451b9b 100644
--- a/src/liblzma/common/block_encoder.c
+++ b/src/liblzma/common/block_encoder.c
@@ -327,7 +327,7 @@ block_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
if (!options->has_eopm && options->uncompressed_size == 0) {
// Also Compressed Size must also be zero if it has been
// given to us.
- if (!is_size_valid(options->compressed_size, 0))
+ if (!is_size_valid(0, options->compressed_size))
return LZMA_PROG_ERROR;
next->coder->sequence = SEQ_CHECK_FINISH;