diff options
Diffstat (limited to 'src/filesystem')
-rw-r--r-- | src/filesystem/inifile.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filesystem/inifile.cc b/src/filesystem/inifile.cc index 52bf36d..e9ab283 100644 --- a/src/filesystem/inifile.cc +++ b/src/filesystem/inifile.cc @@ -101,6 +101,10 @@ bool IniFile::getline() if (s.size() == 0) { // empty line } else + // strip trailing EOL / FF characters + if ( (s[s.size() -1] == 0x0a) || (s[s.size() -1] == 0x0d)) + s.erase(s.size() -1); + // comment if (s[0] == '#' || s[0] == ';') { // condebug << "IniFile got comment " << s << std::endl; |