Fixed crash when parsing config file under Win32

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@89 b624d157-de02-0410-bad0-e51aec6abb33
master
tarek_saidi 19 years ago
parent 169dc74c0f
commit 2e7c1f3073
  1. 1
      src/lib/IniReader.cpp

@ -57,6 +57,7 @@ bool CIniFile::ReadFile()
// Note that the '\r' will be written to INI files from
// Unix so that the created INI file can be read under Win32
// without change.
if( !line.length())continue;
if ( line[line.length() - 1] == '\r')
line = line.substr( 0, line.length() - 1);