# HG changeset patch # User Matti Hamalainen # Date 1511307227 -7200 # Node ID d8a83582f78fa8ce39b070b6b5aa2b7172a30d85 # Parent a9516570cc26dc2ce09b36e4ac8e21013c543cb0 Cosmetics. diff -r a9516570cc26 -r d8a83582f78f tests/vecmattest.c --- a/tests/vecmattest.c Wed Nov 22 01:33:21 2017 +0200 +++ b/tests/vecmattest.c Wed Nov 22 01:33:47 2017 +0200 @@ -2,6 +2,7 @@ #include "dmlib.h" #include "dmvecmat.h" + void printTest(const char *test, int expected, int result) { fprintf(stderr, "Test '%s': %s\n", test, diff -r a9516570cc26 -r d8a83582f78f tools/data2inc.c --- a/tools/data2inc.c Wed Nov 22 01:33:21 2017 +0200 +++ b/tools/data2inc.c Wed Nov 22 01:33:47 2017 +0200 @@ -10,6 +10,7 @@ #include "dmargs.h" #include "dmmutex.h" + #define RA_LINEBUF (16) enum diff -r a9516570cc26 -r d8a83582f78f tools/gfxconv.c --- a/tools/gfxconv.c Wed Nov 22 01:33:21 2017 +0200 +++ b/tools/gfxconv.c Wed Nov 22 01:33:47 2017 +0200 @@ -9,9 +9,9 @@ #include "dmlib.h" #include "dmargs.h" #include "dmfile.h" -#include "dmmutex.h" #include "libgfx.h" #include "lib64gfx.h" +#include "dmmutex.h" #define DM_MAX_COLORS 256 diff -r a9516570cc26 -r d8a83582f78f tools/lib64gfx.c --- 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;