# HG changeset patch # User Matti Hamalainen # Date 1701306444 -7200 # Node ID 17679e05c63bf7147e8da492401f09c9f2662047 # Parent 1f0aecb1017cf493b0a8e680e3115a716c059f71 Fix some XX9 variants. diff -r 1f0aecb1017c -r 17679e05c63b tools/lib64fmts.c --- a/tools/lib64fmts.c Thu Nov 30 02:16:55 2023 +0200 +++ b/tools/lib64fmts.c Thu Nov 30 03:07:24 2023 +0200 @@ -181,18 +181,16 @@ static const Uint8 fmtFormatXX9_MagicID[] = { - 0x01, 0x08, 0x0b, 0x08, 0xe0, 0x02, 0x9e, 0x32, - 0x30, 0x36, 0x31, 0x00, 0x00, 0x00, 0xa2, 0x19, - 0xb5, 0x02, 0x9d, 0x6f, 0x31, 0xca, 0x10, 0xf8, - 0xa9, 0x0e, 0x20, 0xd2, 0xff, 0xa5, 0x01, 0x48, - 0x29, 0xf8, 0x09, 0x06, 0x85, 0x01, 0x20, 0x65, - 0x08, 0x68, 0x8d, 0x8e, 0x31, 0xba, 0x8e, 0x8d, + 0xa2, 0x19, 0xb5, 0x02, 0x9d, 0x6f, 0x31, 0xca, + 0x10, 0xf8, 0xa9, 0x0e, 0x20, 0xd2, 0xff, 0xa5, + 0x01, 0x48, 0x29, 0xf8, 0x09, 0x06, 0x85, 0x01, + 0x20, 0x65, 0x08, 0x68, 0x8d, 0x8e, 0x31, 0xba, }; static int fmtProbeFormatXX9(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) { if (buf->len == fmt->size && - DM_MEMCMP_SIZE(buf->data, fmtFormatXX9_MagicID) == 0 + DM_MEMCMP_SIZE(buf->data + 14, fmtFormatXX9_MagicID) == 0 ) return DM_PROBE_SCORE_MAX;