# HG changeset patch # User Matti Hamalainen # Date 1528284810 -10800 # Node ID c0c6fd8b288aabd74afa4b145961476eea098a5d # Parent 95317672ff00decb2b69eb52a39e4b2019f74fc4 Use dmGenericRLEOutputRun(). diff -r 95317672ff00 -r c0c6fd8b288a tools/lib64gfx.c --- a/tools/lib64gfx.c Wed Jun 06 14:31:20 2018 +0300 +++ b/tools/lib64gfx.c Wed Jun 06 14:33:30 2018 +0300 @@ -448,14 +448,8 @@ } } - while (count--) - { - if (!dmGrowBufPutU8(dst, data)) - { - res = DMERR_MALLOC; - goto out; - } - } + if ((res = dmGenericRLEOutputRun(dst, cfg, data, count)) != DMERR_OK) + goto out; } res = DMERR_OK;