changeset 1848:273e274f9ed6

Fix encoding of GunPaint format by placing the magic ID in correct position.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 22 Jun 2018 22:39:12 +0300
parents e3d1f16be4ee
children 914dbb50139f
files tools/lib64fmts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Fri Jun 22 22:38:51 2018 +0300
+++ b/tools/lib64fmts.c	Fri Jun 22 22:39:12 2018 +0300
@@ -300,7 +300,7 @@
     (void) op;
     (void) img;
     (void) fmt;
-    memcpy(buf->data + fmtGunPaintMagicOffs, fmtGunPaintMagicID, fmtGunPaintMagicLen);
+    memcpy(buf->data + fmtGunPaintMagicOffs + 2, fmtGunPaintMagicID, fmtGunPaintMagicLen);
     return TRUE;
 }