From 07e353f4ff53865882978037e116b267d39aa4fd Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 16 Nov 2017 22:26:28 +0800 Subject: [PATCH] Fix typo when handling MTK --- jni/magiskboot/bootimg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/magiskboot/bootimg.c b/jni/magiskboot/bootimg.c index 0a367f7f6..ae8372700 100644 --- a/jni/magiskboot/bootimg.c +++ b/jni/magiskboot/bootimg.c @@ -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];