summaryrefslogtreecommitdiff
path: root/lib/lzss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lzss.cpp')
-rw-r--r--lib/lzss.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lzss.cpp b/lib/lzss.cpp
index c95de5f..1d7ecfb 100644
--- a/lib/lzss.cpp
+++ b/lib/lzss.cpp
@@ -328,6 +328,7 @@ unsigned char * lzss::lzss_memcomp(unsigned char * r, int * l, int * delta) {
printm(M_INFO, "Begin of block 0.\n");
while ((remaining = *l - ptr) > 0) {
printm(M_INFO, " Remaining bytes: %li\n", remaining);
+ lzss_maxsize = MIN(lzss_maxsize, remaining);
bitmap_count++;
bitmap >>= 1;
farest = ptr - lzss_maxptr;