From 3dd6bad228fa7d6a118c3f2ed06ca0ce4816b846 Mon Sep 17 00:00:00 2001 From: "josh.macdonald" Date: Thu, 9 May 2013 05:59:01 +0000 Subject: Fix LZMA encoding / decoding --- xdelta3/xdelta3-second.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xdelta3/xdelta3-second.h') diff --git a/xdelta3/xdelta3-second.h b/xdelta3/xdelta3-second.h index b9830ab..02e27f6 100644 --- a/xdelta3/xdelta3-second.h +++ b/xdelta3/xdelta3-second.h @@ -290,7 +290,7 @@ xd3_encode_secondary (xd3_stream *stream, XD3_ASSERT (comp_size == xd3_sizeof_output (tmp_head)); XD3_ASSERT (tmp_tail != NULL); - if (comp_size < (orig_size - SECONDARY_MIN_SAVINGS)) + if (comp_size < (orig_size - SECONDARY_MIN_SAVINGS) || cfg->inefficient) { IF_DEBUG1(DP(RINT "secondary saved %u bytes: %u -> %u (%0.2f%%)\n", orig_size - comp_size, orig_size, comp_size, -- cgit v1.2.3