Commit 07e353f4 authored by topjohnwu's avatar topjohnwu

Fix typo when handling MTK

parent bb33d9e6
......@@ -128,7 +128,7 @@ int parse_img(void *orig, size_t size, boot_img *boot) {
memcpy(&boot->mtk_ramdisk_hdr, boot->ramdisk, sizeof(mtk_hdr));
boot->ramdisk += 512;
boot->hdr.ramdisk_size -= 512;
boot->ramdisk_type = check_type(boot->ramdisk + 512);
boot->ramdisk_type = check_type(boot->ramdisk);
}
char fmt[16];
......
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