summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'data.cpp')
-rw-r--r--data.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/data.cpp b/data.cpp
index be76592aa..c766f0061 100644
--- a/data.cpp
+++ b/data.cpp
@@ -556,8 +556,7 @@ void DataManager::SetBackupFolder()
if (zip_path.size() < storage_path.size()) {
SetValue(TW_ZIP_LOCATION_VAR, storage_path);
} else {
- zip_root= zip_path;
- zip_root.resize(storage_path.size());
+ zip_root = TWFunc::Get_Root_Path(zip_path);
if (zip_root != storage_path) {
LOGINFO("DataManager::SetBackupFolder zip path was %s changing to %s, %s\n", zip_path.c_str(), storage_path.c_str(), zip_root.c_str());
SetValue(TW_ZIP_LOCATION_VAR, storage_path);