Mercurial > hg > dmlib
changeset 1790:523c1d1270d6
Fix output buffer cropping in dmFinishRLEBuffers() for DM_OUT_CROP_END case.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 13 Jun 2018 03:01:53 +0300 |
parents | 9f5c5ab0e85e |
children | ae53df2156ed |
files | tools/lib64gfx.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;