summaryrefslogtreecommitdiffstats
path: root/applypatch/imgpatch.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-01-20 21:15:57 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-01-20 21:15:57 +0100
commite78ca37656d72d10952727c20f20c5044b4b3db0 (patch)
treeb2e5db48135124c31b3f4aa8ad4c274a3e0255f5 /applypatch/imgpatch.cpp
parentMerge "imgdiff: cache bsdiff suffix array in zip mode." (diff)
parentimgpatch: Compile with ZLIB_CONST defined. (diff)
downloadandroid_bootable_recovery-e78ca37656d72d10952727c20f20c5044b4b3db0.tar
android_bootable_recovery-e78ca37656d72d10952727c20f20c5044b4b3db0.tar.gz
android_bootable_recovery-e78ca37656d72d10952727c20f20c5044b4b3db0.tar.bz2
android_bootable_recovery-e78ca37656d72d10952727c20f20c5044b4b3db0.tar.lz
android_bootable_recovery-e78ca37656d72d10952727c20f20c5044b4b3db0.tar.xz
android_bootable_recovery-e78ca37656d72d10952727c20f20c5044b4b3db0.tar.zst
android_bootable_recovery-e78ca37656d72d10952727c20f20c5044b4b3db0.zip
Diffstat (limited to '')
-rw-r--r--applypatch/imgpatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/imgpatch.cpp b/applypatch/imgpatch.cpp
index ae6071f0e..00ea90efa 100644
--- a/applypatch/imgpatch.cpp
+++ b/applypatch/imgpatch.cpp
@@ -160,7 +160,7 @@ int ApplyImagePatch(const unsigned char* old_data, ssize_t old_size, const Value
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;
strm.avail_in = src_len;
- strm.next_in = const_cast<unsigned char*>(old_data + src_start);
+ strm.next_in = old_data + src_start;
strm.avail_out = expanded_len;
strm.next_out = expanded_source.data();