From 5f4817ef2f0a4101a957abb4fd98636a5f41acae Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 27 Apr 2004 17:52:51 +0000 Subject: Humf... --- lib/lzss.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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; -- cgit v1.2.3