From 9fde688f1fa5732916331550964ff343c497d09d Mon Sep 17 00:00:00 2001 From: dosomder Date: Sat, 12 Mar 2016 23:40:36 +0100 Subject: [PATCH] Fix lz4 compression_level check Match this check with the rest of the file where HC is level 3 and up --- libarchive/archive_write_add_filter_lz4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.47.2