summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2004-04-27 17:52:51 +0000
committerpixel <pixel>2004-04-27 17:52:51 +0000
commit5f4817ef2f0a4101a957abb4fd98636a5f41acae (patch)
tree425dcf8cd9c9622f683048220cf620f51c3284f3 /lib
parentd14af5a3b7b816cc474fee19525627fdfcd7c71c (diff)
Humf...
Diffstat (limited to 'lib')
-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;