summaryrefslogtreecommitdiff
path: root/cmds/idmap2/libidmap2/ZipFile.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-05-06 12:22:59 -0700
committerElliott Hughes <enh@google.com>2019-05-06 12:22:59 -0700
commitbf42c724dd0dd8a76d1e8ce99eb1af72cc6807cd (patch)
tree19c2b2b773f7419a6613a7f36ad830147bddefdf /cmds/idmap2/libidmap2/ZipFile.cpp
parent4d450edb0f17c313b747376f7b65dd02ee2a2d4c (diff)
libidmap2: track libziparchive API change.
Bug: http://b/129068177 Test: treehugger Change-Id: Id1e855d17cde15b2db37df5e192e2011c60eaebe
Diffstat (limited to 'cmds/idmap2/libidmap2/ZipFile.cpp')
-rw-r--r--cmds/idmap2/libidmap2/ZipFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/idmap2/libidmap2/ZipFile.cpp b/cmds/idmap2/libidmap2/ZipFile.cpp
index 812fd6eacbf9..4f5e3a45f183 100644
--- a/cmds/idmap2/libidmap2/ZipFile.cpp
+++ b/cmds/idmap2/libidmap2/ZipFile.cpp
@@ -45,7 +45,7 @@ ZipFile::~ZipFile() {
std::unique_ptr<const MemoryChunk> ZipFile::Uncompress(const std::string& entryPath) const {
::ZipEntry entry;
- int32_t status = ::FindEntry(handle_, ::ZipString(entryPath.c_str()), &entry);
+ int32_t status = ::FindEntry(handle_, entryPath, &entry);
if (status != 0) {
return nullptr;
}
@@ -59,7 +59,7 @@ std::unique_ptr<const MemoryChunk> ZipFile::Uncompress(const std::string& entryP
Result<uint32_t> ZipFile::Crc(const std::string& entryPath) const {
::ZipEntry entry;
- int32_t status = ::FindEntry(handle_, ::ZipString(entryPath.c_str()), &entry);
+ int32_t status = ::FindEntry(handle_, entryPath, &entry);
if (status != 0) {
return Error("failed to find zip entry %s", entryPath.c_str());
}