From d8d47395285031befc97f91f94f8233b4f81305e Mon Sep 17 00:00:00 2001 From: SimplestStudio Date: Mon, 23 Oct 2023 10:34:56 +0300 Subject: [PATCH] [linux] updatesvc: adaptation for tar.xz archive --- .../extras/update-daemon/src/classes/platform_linux/cunzip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win-linux/extras/update-daemon/src/classes/platform_linux/cunzip.cpp b/win-linux/extras/update-daemon/src/classes/platform_linux/cunzip.cpp index cd62e2560..38e4c6840 100644 --- a/win-linux/extras/update-daemon/src/classes/platform_linux/cunzip.cpp +++ b/win-linux/extras/update-daemon/src/classes/platform_linux/cunzip.cpp @@ -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);