Subject: [dtc] ftdump missing be32_to_cpu() on size cell.

From: Ed Swarthout <[email-masked]>
Date: Wed, 14 Mar 2007 17:33:19 -0500

---
 ftdump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ftdump.c b/ftdump.c
index 67c5228..55209b6 100644
--- a/ftdump.c
+++ b/ftdump.c
@@ -142,7 +142,7 @@ static void dump_blob(void *blob)
 			fprintf(stderr, "%*s ** Unknown tag 0x%08x\n", depth * shift, "", tag);
 			break;
 		}
-		sz = GET_CELL(p);
+		sz = be32_to_cpu(GET_CELL(p));
 		s = p_strings + be32_to_cpu(GET_CELL(p));
 		if (version < 16 && sz >= 8)
 			p = PALIGN(p, 8);
-- 
1.5.0.3.290.gc390a