summaryrefslogtreecommitdiffstats
path: root/updater/blockimg.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-05-04 07:52:37 +0200
committerElliott Hughes <enh@google.com>2019-05-06 19:28:14 +0200
commita86dddbfa593ae1227806af9692fbb6223d4e435 (patch)
tree4d64abfed9a6c77050f8dc50dee534dc9ccfc262 /updater/blockimg.cpp
parentMerge "ConsumePrefix is now in libbase." (diff)
downloadandroid_bootable_recovery-a86dddbfa593ae1227806af9692fbb6223d4e435.tar
android_bootable_recovery-a86dddbfa593ae1227806af9692fbb6223d4e435.tar.gz
android_bootable_recovery-a86dddbfa593ae1227806af9692fbb6223d4e435.tar.bz2
android_bootable_recovery-a86dddbfa593ae1227806af9692fbb6223d4e435.tar.lz
android_bootable_recovery-a86dddbfa593ae1227806af9692fbb6223d4e435.tar.xz
android_bootable_recovery-a86dddbfa593ae1227806af9692fbb6223d4e435.tar.zst
android_bootable_recovery-a86dddbfa593ae1227806af9692fbb6223d4e435.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";