Skip to content

Commit

Permalink
unpackbootimg: leave note on total_read of sizeof(header) for < hdr_v3
Browse files Browse the repository at this point in the history
  • Loading branch information
osm0sis committed Apr 15, 2021
1 parent edeb684 commit 8a4e746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unpackbootimg.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ int main(int argc, char **argv)
write_string_to_file("hashtype", hash_type);

total_read += sizeof(header);
if(debug>1){printf("read: %ld\n", sizeof(header));}
if(debug>1){printf("read: %ld\n", sizeof(header));} // this will always show 1660 here since it uses boot_img_hdr_v2
total_read += read_padding(f, sizeof(header));

write_buffer_to_file("kernel", f, header.kernel_size);
Expand Down

0 comments on commit 8a4e746

Please sign in to comment.