From e8c5e345c5769a164f213c31feaef027a6a0df17 Mon Sep 17 00:00:00 2001 From: Epicpkmn11 Date: Sat, 21 Dec 2019 16:27:21 -0600 Subject: [PATCH] Set `extractingFile` to name of current file (forgot since was unused) --- source/utils/extract.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/utils/extract.cpp b/source/utils/extract.cpp index 8b328ea..366053b 100644 --- a/source/utils/extract.cpp +++ b/source/utils/extract.cpp @@ -49,6 +49,7 @@ Result extractArchive(std::string archivePath, std::string wantedFile, std::stri std::string entryName(archive_entry_pathname(entry)); std::smatch match; if(std::regex_search(entryName, match, std::regex(wantedFile))) { + extractingFile = (entryName.length() > wantedFile.length() ? entryName.substr(wantedFile.length()) : wantedFile); ret = EXTRACT_ERROR_NONE; // make directories