ftdump missing be32_to_cpu() on size cell.

This commit is contained in:
Ed Swarthout 2007-03-14 17:33:19 -05:00 committed by Jon Loeliger
parent cd1da87116
commit 001430072f

View file

@ -142,7 +142,7 @@ static void dump_blob(void *blob)
fprintf(stderr, "%*s ** Unknown tag 0x%08x\n", depth * shift, "", tag); fprintf(stderr, "%*s ** Unknown tag 0x%08x\n", depth * shift, "", tag);
break; break;
} }
sz = GET_CELL(p); sz = be32_to_cpu(GET_CELL(p));
s = p_strings + be32_to_cpu(GET_CELL(p)); s = p_strings + be32_to_cpu(GET_CELL(p));
if (version < 16 && sz >= 8) if (version < 16 && sz >= 8)
p = PALIGN(p, 8); p = PALIGN(p, 8);