diff options
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r-- | partitionmanager.cpp | 6 |
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 { |