# HG changeset patch # User Matti Hamalainen # Date 1526272329 -10800 # Node ID b5e0f28f184202578a4f813c230b82177f180437 # Parent 501e31f11c29638c5b121facb74df5793f2ef6da Adjust Fun Paint 2 decoding now that the RLE decoding is fixed. diff -r 501e31f11c29 -r b5e0f28f1842 tools/lib64fmts.c --- 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);