Commit ac05e2f2 authored by topjohnwu's avatar topjohnwu

Fix tail size calculation

Close #381
parent 787f7b30
...@@ -168,7 +168,7 @@ int parse_img(const char *image, boot_img *boot) { ...@@ -168,7 +168,7 @@ int parse_img(const char *image, boot_img *boot) {
if (pos < boot->map_size) { if (pos < boot->map_size) {
boot->tail = head + pos; boot->tail = head + pos;
boot->tail_size = boot->map_size - pos; boot->tail_size = boot->map_size - (boot->tail - boot->map_addr);
} }
// Check tail info, currently only for LG Bump and Samsung SEANDROIDENFORCE // Check tail info, currently only for LG Bump and Samsung SEANDROIDENFORCE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment