# HG changeset patch # User Matti Hamalainen # Date 1506255623 -10800 # Node ID b3e561e2209a33fd2c8800ad07088a849b63a85d # Parent e6b13426b50a3c7f56e468d2063a8fe4bc582968 Variable name cleanup. diff -r e6b13426b50a -r b3e561e2209a tools/lib64gfx.c --- a/tools/lib64gfx.c Sun Sep 24 15:11:49 2017 +0300 +++ b/tools/lib64gfx.c Sun Sep 24 15:20:23 2017 +0300 @@ -239,12 +239,12 @@ static int fmtDecodeDrazPaintPacked(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) { int res; - Uint8 *mem = NULL, *dstEnd; + Uint8 *mem = NULL, *end; - if ((res = dmDecodeGenericRLE(&mem, &dstEnd, buf + 0x0e, buf + len, *(buf + 0x0d))) != DMERR_OK) + if ((res = dmDecodeGenericRLE(&mem, &end, buf + 0x0e, buf + len, *(buf + 0x0d))) != DMERR_OK) goto out; - res = dmC64DecodeGenericBMP(img, mem, dstEnd - mem + 1, fmt); + res = dmC64DecodeGenericBMP(img, mem, end - mem + 1, fmt); out: dmFree(mem); @@ -302,12 +302,12 @@ static int fmtDecodeAmicaPaintPacked(DMC64Image *img, const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) { int res; - Uint8 *mem = NULL, *dstEnd; + Uint8 *mem = NULL, *end; - if ((res = dmDecodeGenericRLE(&mem, &dstEnd, buf, buf + len, 0xC2)) != DMERR_OK) + if ((res = dmDecodeGenericRLE(&mem, &end, buf, buf + len, 0xC2)) != DMERR_OK) goto out; - res = dmC64DecodeGenericBMP(img, mem, dstEnd - mem + 1, fmt); + res = dmC64DecodeGenericBMP(img, mem, end - mem + 1, fmt); out: dmFree(mem);