Mercurial > hg > dmlib
changeset 2591:b2c510f851dc
Adjust Koala format probing to allow for file lengths between 10002 and
10004 bytes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 25 Dec 2022 02:37:11 +0200 |
parents | 0d6aa5cae517 |
children | 70b589a22495 |
files | tools/lib64fmts.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64fmts.c Tue Dec 13 10:09:40 2022 +0200 +++ b/tools/lib64fmts.c Sun Dec 25 02:37:11 2022 +0200 @@ -605,8 +605,8 @@ { int score = DM_PROBE_SCORE_false; - if (buf->len == 10003 || - buf->len == 10004) + if (buf->len >= 10002 && + buf->len <= 10004) score += DM_PROBE_SCORE_MAYBE; if (dmCompareAddr16(buf, 0, fmt->addr))