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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user