# HG changeset patch # User Matti Hamalainen # Date 1528844283 -10800 # Node ID 9f5c5ab0e85efac5557291fb6a45b082a5ad5411 # Parent 04e13949b314cfaf391a64ec0e94fc27490a6919 Adjust True Paint probing to be slightly more forgiving vs. file size. diff -r 04e13949b314 -r 9f5c5ab0e85e tools/lib64fmts.c --- a/tools/lib64fmts.c Wed Jun 13 01:57:07 2018 +0300 +++ b/tools/lib64fmts.c Wed Jun 13 01:58:03 2018 +0300 @@ -468,7 +468,8 @@ 0xff, 0xc6, 0xfe }; - if (buf->len >= 512 && dmCompareAddr16(buf, 0, fmt->addr) && + if (buf->len >= 320 && + dmCompareAddr16(buf, 0, fmt->addr) && memcmp(buf->data + 2, magicID, sizeof(magicID)) == 0) return DM_PROBE_SCORE_MAX;