commit | dc013d464000635a5b8ae841c6e683f94a6bee3d | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@pollux.denx.de> | Sun Mar 12 01:59:35 2006 +0100 |
committer | Wolfgang Denk <wd@pollux.denx.de> | Sun Mar 12 01:59:35 2006 +0100 |
tree | ae381c15180d16a1d30d4c5d0a7217741d8aaf64 | |
parent | 8ff0208d31223e36f7c038982589b448d7fdd217 [diff] [blame] |
Add loads of ntohl() in image header handling Patch by Steven Scholz, 10 Jun 2005
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 @@ 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");