[linux] updatesvc: adaptation for tar.xz archive

This commit is contained in:
SimplestStudio
2023-10-23 10:34:56 +03:00
parent 9217f637c9
commit d8d4739528

View File

@ -71,7 +71,7 @@ int unzipArchive(const string &zipFilePath, const string &folderPath, std::atomi
}
char outpath[1024] = {0};
snprintf(outpath, sizeof(outpath), "%s%s", folderPath.c_str(), entryname);
snprintf(outpath, sizeof(outpath), "%s/%s", folderPath.c_str(), entryname);
if (archive_entry_filetype(entry) == AE_IFREG) {
archive_entry_set_pathname(entry, outpath);