From d64b441bfbf69eee70e3e228d03f50b98945126a Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 4 Sep 2012 22:42:46 -0500 Subject: [PATCH] LZ77 lazy match fix --- src/lz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lz.c b/src/lz.c index 2f01850b..93d07f0d 100644 --- a/src/lz.c +++ b/src/lz.c @@ -248,7 +248,7 @@ uint lz_analyze_block(const u8 uncompressed_data[], uint uncompressed_len, prev_start = match_start; match_len = params->min_match - 1; - if (hash_head != 0 && prev_len < params->min_match) { + if (hash_head != 0 && prev_len < params->max_lazy_match) { /* To simplify the code, we prevent matches with the * string of window index 0 (in particular we have to * avoid a match of the string with itself at the start -- 2.43.0