diff options
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 7270161..38ab65e 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -520,7 +520,7 @@ void cmCursesMainForm::FillCacheManagerFromUI() tmpString = (*m_Entries)[i]->m_Entry->GetValue(); // Remove trailing spaces, convert path to unix slashes - string tmpSubString = + std::string tmpSubString = tmpString.substr(0,tmpString.find_last_not_of(" ")+1); if ( entry->m_Type == cmCacheManager::PATH || entry->m_Type == cmCacheManager::FILEPATH ) |