Fix tail size calculation

Close #381
This commit is contained in:
topjohnwu 2018-03-27 00:45:18 +08:00
parent 787f7b3035
commit ac05e2f2e2

View File

@ -168,7 +168,7 @@ int parse_img(const char *image, boot_img *boot) {
if (pos < boot->map_size) {
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