diff tools/lib64fmts.c @ 1598:b5e0f28f1842

Adjust Fun Paint 2 decoding now that the RLE decoding is fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 May 2018 07:32:09 +0300
parents afb49736615a
children da4d7b5873c0
line wrap: on
line diff
--- a/tools/lib64fmts.c	Mon May 14 07:27:31 2018 +0300
+++ b/tools/lib64fmts.c	Mon May 14 07:32:09 2018 +0300
@@ -369,9 +369,8 @@
         cfg.type = DM_COMP_RLE_MARKER1;
         cfg.rleMarker = buf[15];
 
-        if ((res = dmDecodeGenericRLEAlloc(&mem, buf + FUNPAINT2_HEADER_SIZE,
-            buf + len + 1, // XXX TODO: nasty +1
-            &cfg)) == DMERR_OK)
+        if ((res = dmDecodeGenericRLEAlloc(
+            &mem, buf + FUNPAINT2_HEADER_SIZE, buf + len, &cfg)) == DMERR_OK)
             res = dmC64DecodeGenericBMP(img, mem.data, mem.len, fmt);
 
         dmGrowBufFree(&mem);