1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

Add loads of ntohl() in image header handling

Patch by Steven Scholz, 10 Jun 2005
This commit is contained in:
Wolfgang Denk
2006-03-12 01:59:35 +01:00
parent 8ff0208d31
commit dc013d4640
6 changed files with 20 additions and 17 deletions

View File

@@ -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");