summaryrefslogtreecommitdiffstats
path: root/updater/blockimg.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-05-07 02:14:06 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-05-07 02:14:06 +0200
commit0d24715223c13917d9399c8c08778eca4e62f886 (patch)
tree81cf24b00af207c2fdb5d329feb32ac9eca1737d /updater/blockimg.cpp
parentMerge "Disable libbootloader_message for darwin" (diff)
parentMerge "Track libziparchive API change." (diff)
downloadandroid_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.gz
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.bz2
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.lz
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.xz
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.tar.zst
android_bootable_recovery-0d24715223c13917d9399c8c08778eca4e62f886.zip
Diffstat (limited to 'updater/blockimg.cpp')
-rw-r--r--updater/blockimg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 07c3c7b52..b008c28b4 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1680,7 +1680,7 @@ static Value* PerformBlockImageUpdate(const char* name, State* state,
return StringValue("");
}
- ZipString path_data(patch_data_fn->data.c_str());
+ std::string_view path_data(patch_data_fn->data);
ZipEntry patch_entry;
if (FindEntry(za, path_data, &patch_entry) != 0) {
LOG(ERROR) << name << "(): no file \"" << patch_data_fn->data << "\" in package";
@@ -1688,7 +1688,7 @@ static Value* PerformBlockImageUpdate(const char* name, State* state,
}
params.patch_start = ui->package_zip_addr + patch_entry.offset;
- ZipString new_data(new_data_fn->data.c_str());
+ std::string_view new_data(new_data_fn->data);
ZipEntry new_entry;
if (FindEntry(za, new_data, &new_entry) != 0) {
LOG(ERROR) << name << "(): no file \"" << new_data_fn->data << "\" in package";