From: dosomder Date: Sat, 12 Mar 2016 22:40:36 +0000 (+0100) Subject: Fix lz4 compression_level check X-Git-Tag: v3.1.901a~9^2~10^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F669%2Fhead;p=thirdparty%2Flibarchive.git Fix lz4 compression_level check Match this check with the rest of the file where HC is level 3 and up --- diff --git a/libarchive/archive_write_add_filter_lz4.c b/libarchive/archive_write_add_filter_lz4.c index 15a99b095..1d0ab8c56 100644 --- a/libarchive/archive_write_add_filter_lz4.c +++ b/libarchive/archive_write_add_filter_lz4.c @@ -498,7 +498,7 @@ drive_compressor_independence(struct archive_write_filter *f, const char *p, unsigned int outsize; #ifdef HAVE_LZ4HC_H - if (data->compression_level >= 4) + if (data->compression_level >= 3) #if LZ4_VERSION_MAJOR >= 1 && LZ4_VERSION_MINOR >= 7 outsize = LZ4_compress_HC(p, data->out + 4, (int)length, (int)data->block_size,