From: Christos Zoulas Date: Sat, 14 Feb 2015 18:43:12 +0000 (+0000) Subject: Don't hardcode the +10 offset in the source. X-Git-Tag: FILE5_23~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d39fc4444f07f6447ee4e6b0200a4676cb519fe7;p=file Don't hardcode the +10 offset in the source. --- diff --git a/src/softmagic.c b/src/softmagic.c index dfbdb19b..e947e1d0 100644 --- a/src/softmagic.c +++ b/src/softmagic.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: softmagic.c,v 1.211 2015/01/09 19:27:41 christos Exp $") +FILE_RCSID("@(#)$File: softmagic.c,v 1.212 2015/01/24 22:11:25 christos Exp $") #endif /* lint */ #include "magic.h" @@ -1567,7 +1567,9 @@ mget(struct magic_set *ms, const unsigned char *s, struct magic *m, offset = ((((offset >> 0) & 0x7f) << 0) | (((offset >> 8) & 0x7f) << 7) | (((offset >> 16) & 0x7f) << 14) | - (((offset >> 24) & 0x7f) << 21)) + 10; + (((offset >> 24) & 0x7f) << 21)); + if ((ms->flags & MAGIC_DEBUG) != 0) + fprintf(stderr, "id3 offs=%u\n", offset); break; default: break;