Mercurial > hg > dmlib
diff tools/lib64gfx.c @ 1433:d8a83582f78f
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 22 Nov 2017 01:33:47 +0200 |
parents | 4c7b456d7f0b |
children | 3773281491c9 |
line wrap: on
line diff
--- a/tools/lib64gfx.c Wed Nov 22 01:33:21 2017 +0200 +++ b/tools/lib64gfx.c Wed Nov 22 01:33:47 2017 +0200 @@ -345,6 +345,7 @@ static int fmtProbeAmicaPaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) { size_t i, n; + if (len < 2048 || !dmCompareAddr16(buf, 0, fmt->addr)) return DM_PROBE_SCORE_FALSE;