Fix softmagic

This commit is contained in:
pancake 2015-02-18 01:22:20 +01:00
parent 97e9c95b4b
commit d8098a64f8

View File

@ -167,7 +167,7 @@ static int match(RMagic *ms, struct r_magic *magic, ut32 nmagic, const ut8 *s, s
if (file_check_mem(ms, ++cont_level) == -1)
return -1;
while (magic[magindex].cont_level != 0 && magic[magindex+1].cont_level != 0 && ++magindex < nmagic - 1) {
while (++magindex < nmagic - 1 && magic[magindex].cont_level != 0) {
m = &magic[magindex];
ms->line = m->lineno; /* for messages */