Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32112f05 authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "Track libziparchive API change."

am: 3dd44d19

Change-Id: I7311dfb8947b1204b9587a36df60c4e2fab5f411
parents aa5e44f6 3dd44d19
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -395,11 +395,9 @@ void ForEachFileInZip(const std::string& zipname,
    ALOGD("searching for layers in '%s!/%s'", zipname.c_str(),
    ALOGD("searching for layers in '%s!/%s'", zipname.c_str(),
          dir_in_zip.c_str());
          dir_in_zip.c_str());
    ZipEntry entry;
    ZipEntry entry;
    ZipString name;
    std::string name;
    while (Next(iter_cookie, &entry, &name) == 0) {
    while (Next(iter_cookie, &entry, &name) == 0) {
        std::string filename(
        std::string filename(name.substr(prefix.length()));
            reinterpret_cast<const char*>(name.name) + prefix.length(),
            name.name_length - prefix.length());
        // only enumerate direct entries of the directory, not subdirectories
        // only enumerate direct entries of the directory, not subdirectories
        if (filename.find('/') != filename.npos)
        if (filename.find('/') != filename.npos)
            continue;
            continue;