mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 12:36:30 +00:00
Fix softmagic
This commit is contained in:
parent
97e9c95b4b
commit
d8098a64f8
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user