diff options
author | Tao Bao <tbao@google.com> | 2015-07-15 00:52:24 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-15 00:52:24 +0200 |
commit | 3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f (patch) | |
tree | 500677af2c571ac6f43bbc1f5b4b24d52a68d7ec /updater/updater.cpp | |
parent | am f2853e27: am 65c230f4: Merge "Revert "Zero blocks before BLKDISCARD"" (diff) | |
parent | am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp." (diff) | |
download | android_bootable_recovery-3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f.tar android_bootable_recovery-3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f.tar.gz android_bootable_recovery-3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f.tar.bz2 android_bootable_recovery-3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f.tar.lz android_bootable_recovery-3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f.tar.xz android_bootable_recovery-3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f.tar.zst android_bootable_recovery-3231c7ca7f6534adf50474c8db57b1ba3c6cfe2f.zip |
Diffstat (limited to '')
-rw-r--r-- | updater/updater.cpp (renamed from updater/updater.c) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/updater.c b/updater/updater.cpp index 661f69587..0f22e6d04 100644 --- a/updater/updater.c +++ b/updater/updater.cpp @@ -89,7 +89,7 @@ int main(int argc, char** argv) { return 4; } - char* script = malloc(script_entry->uncompLen+1); + char* script = reinterpret_cast<char*>(malloc(script_entry->uncompLen+1)); if (!mzReadZipEntry(&za, script_entry, script, script_entry->uncompLen)) { printf("failed to read script from package\n"); return 5; |