# HG changeset patch # User Matti Hamalainen # Date 1530234332 -10800 # Node ID c30dfd5e3227512fa8cf542ec397c8807f19ff52 # Parent 80d67f0e8567a1a3f576dd1397f2103fc5c2e339 Add a comment. diff -r 80d67f0e8567 -r c30dfd5e3227 tools/lib64fmts.c --- a/tools/lib64fmts.c Fri Jun 29 02:02:42 2018 +0300 +++ b/tools/lib64fmts.c Fri Jun 29 04:05:32 2018 +0300 @@ -314,6 +314,8 @@ (void) op; (void) img; (void) fmt; + // Here we assume that the op triggering this function is + // at the end of the oplist, so the memory is allocated, memcpy(buf->data + fmtGunPaintMagicOffs + 2, fmtGunPaintMagicID, fmtGunPaintMagicLen); return TRUE; }