# HG changeset patch # User Matti Hamalainen # Date 1526260305 -10800 # Node ID e6a228b50bd6c9a00a112df1324bc3a20e8429e0 # Parent 3c9e5962eca645d1f342c771f81e182d2ba69ed6# Parent a076c9d9b32115759849f42394360f1f4702486c Merge. diff -r 3c9e5962eca6 -r e6a228b50bd6 tools/gfxconv.c --- a/tools/gfxconv.c Mon May 14 04:11:31 2018 +0300 +++ b/tools/gfxconv.c Mon May 14 04:11:45 2018 +0300 @@ -1057,10 +1057,15 @@ int res = DMERR_OK; DMGrowBuf buf; + dmGrowBufInit(&buf); + // Encode to target format dmMsg(1, "Encoding C64 bitmap data to format '%s'\n", fmt->name); if ((res = dmC64EncodeBMP(&buf, image, fmt)) != DMERR_OK) + { + dmErrorMsg("Error encoding bitmap data: %s\n", dmErrorStr(res)); goto error; + } // And output the file dmMsg(1, "Writing output file '%s'\n", filename);