changeset 1778:e8041923767d

Possibly fix FunPaint 2 unpacked format saving.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 12 Jun 2018 18:21:06 +0300
parents a7f9e12bcd9b
children 20bf4140eaa1
files tools/lib64fmts.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Tue Jun 12 18:20:00 2018 +0300
+++ b/tools/lib64fmts.c	Tue Jun 12 18:21:06 2018 +0300
@@ -629,6 +629,7 @@
 {
     // Add the header bits
     if (!dmGrowBufPut(buf, (Uint8 *) fmtFunPaint2MagicID, strlen(fmtFunPaint2MagicID)) ||
+        !dmGrowBufPutU8(buf, 0) ||
         !dmGrowBufPutU8(buf, 0))
         return DMERR_MALLOC;