summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-09-10 02:16:24 +0200
committerDees Troy <dees_troy@teamw.in>2013-09-10 02:16:31 +0200
commitc2e9bc74a11427510cb13cc767265ce039d255e3 (patch)
tree4d8d2dab4d980f410df80e0f5d9c7f39d75afcd2
parentMerge "Add more args to make_ext4fs command" into twrp2.7 (diff)
downloadandroid_bootable_recovery-c2e9bc74a11427510cb13cc767265ce039d255e3.tar
android_bootable_recovery-c2e9bc74a11427510cb13cc767265ce039d255e3.tar.gz
android_bootable_recovery-c2e9bc74a11427510cb13cc767265ce039d255e3.tar.bz2
android_bootable_recovery-c2e9bc74a11427510cb13cc767265ce039d255e3.tar.lz
android_bootable_recovery-c2e9bc74a11427510cb13cc767265ce039d255e3.tar.xz
android_bootable_recovery-c2e9bc74a11427510cb13cc767265ce039d255e3.tar.zst
android_bootable_recovery-c2e9bc74a11427510cb13cc767265ce039d255e3.zip
Diffstat (limited to '')
-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);