summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-20 18:13:34 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-20 18:14:56 +0200
commit2a92358be32b89887738f1618f453d92051bda23 (patch)
tree8b283291c0796a23463ac938cb9cf5006119cd28 /partitionmanager.cpp
parentAdd and improve OpenRecoveryScript support (diff)
downloadandroid_bootable_recovery-2a92358be32b89887738f1618f453d92051bda23.tar
android_bootable_recovery-2a92358be32b89887738f1618f453d92051bda23.tar.gz
android_bootable_recovery-2a92358be32b89887738f1618f453d92051bda23.tar.bz2
android_bootable_recovery-2a92358be32b89887738f1618f453d92051bda23.tar.lz
android_bootable_recovery-2a92358be32b89887738f1618f453d92051bda23.tar.xz
android_bootable_recovery-2a92358be32b89887738f1618f453d92051bda23.tar.zst
android_bootable_recovery-2a92358be32b89887738f1618f453d92051bda23.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 67ec84ec5..2bcbc2713 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -61,8 +61,12 @@ int TWPartitionManager::Process_Fstab(string Fstab_Filename, bool Display_Error)
if (fstab_line[0] != '/')
continue;
+ if (fstab_line[strlen(fstab_line) - 1] != '\n')
+ fstab_line[strlen(fstab_line)] = '\n';
+
TWPartition* partition = new TWPartition();
- string line(fstab_line);
+ string line = fstab_line;
+
if (partition->Process_Fstab_Line(line, Display_Error)) {
Partitions.push_back(partition);
} else {