# HG changeset patch # User Matti Hamalainen # Date 1528848113 -10800 # Node ID 523c1d1270d698b44de9fa18d29740018af20032 # Parent 9f5c5ab0e85efac5557291fb6a45b082a5ad5411 Fix output buffer cropping in dmFinishRLEBuffers() for DM_OUT_CROP_END case. diff -r 9f5c5ab0e85e -r 523c1d1270d6 tools/lib64gfx.c --- a/tools/lib64gfx.c Wed Jun 13 01:58:03 2018 +0300 +++ b/tools/lib64gfx.c Wed Jun 13 03:01:53 2018 +0300 @@ -398,7 +398,7 @@ case DM_OUT_CROP_END: if (cfg->cropOutLen < dst->len) { - memmove(dst->data, dst->data + dst->len - cfg->cropOutLen + 1, cfg->cropOutLen); + memmove(dst->data, dst->data + dst->len - cfg->cropOutLen + 1, cfg->cropOutLen - 1); dst->len = cfg->cropOutLen; } break;