Fix typo when handling MTK

This commit is contained in:
topjohnwu 2017-11-16 22:26:28 +08:00
parent bb33d9e600
commit 07e353f4ff
1 changed files with 1 additions and 1 deletions

View File

@ -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];