summaryrefslogtreecommitdiff
path: root/common/cmd_doc.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-03-12 01:59:35 +0100
committerWolfgang Denk <wd@pollux.denx.de>2006-03-12 01:59:35 +0100
commitdc013d464000635a5b8ae841c6e683f94a6bee3d (patch)
treeae381c15180d16a1d30d4c5d0a7217741d8aaf64 /common/cmd_doc.c
parent8ff0208d31223e36f7c038982589b448d7fdd217 (diff)
downloadu-boot-imx-dc013d464000635a5b8ae841c6e683f94a6bee3d.zip
u-boot-imx-dc013d464000635a5b8ae841c6e683f94a6bee3d.tar.gz
u-boot-imx-dc013d464000635a5b8ae841c6e683f94a6bee3d.tar.bz2
Add loads of ntohl() in image header handling
Patch by Steven Scholz, 10 Jun 2005
Diffstat (limited to 'common/cmd_doc.c')
-rw-r--r--common/cmd_doc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_doc.c b/common/cmd_doc.c
index c726957..37b7325 100644
--- a/common/cmd_doc.c
+++ b/common/cmd_doc.c
@@ -250,7 +250,7 @@ int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
print_image_hdr (hdr);
- cnt = (hdr->ih_size + sizeof(image_header_t));
+ cnt = (ntohl(hdr->ih_size) + sizeof(image_header_t));
cnt -= SECTORSIZE;
} else {
puts ("\n** Bad Magic Number **\n");