# HG changeset patch # User Matti Hamalainen # Date 1529664114 -10800 # Node ID 6e1dd79c6bcea2ceb3004557a99e70195613e817 # Parent d6fbbf7ddba19d38f7c78bc239da304f622b67a4 Use dmGrowBufPutU16LE() instead of two dmGrowBufPutU8() to push the loading address into target buffer in dmC64EncodeBMP(). diff -r d6fbbf7ddba1 -r 6e1dd79c6bce tools/lib64gfx.c --- a/tools/lib64gfx.c Fri Jun 22 13:40:11 2018 +0300 +++ b/tools/lib64gfx.c Fri Jun 22 13:41:54 2018 +0300 @@ -1445,8 +1445,7 @@ goto err; // Add the loading address - if (!dmGrowBufPutU8(buf, DM_GET_ADDR_LO(fmt->addr)) || - !dmGrowBufPutU8(buf, DM_GET_ADDR_HI(fmt->addr))) + if (!dmGrowBufPutU16LE(buf, fmt->addr)) goto err; // Attempt to encode the image to a buffer