fixed stripping of comments from configuration streams.

This commit is contained in:
crs 2002-06-10 09:49:21 +00:00
parent 2e931a4fd9
commit 2ea3d66112
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ bool CConfig::readLine(std::istream& s, CString& line)
s >> std::ws;
while (std::getline(s, line)) {
// strip comments and then trailing whitespace
CString::size_type i = line.rfind('#');
CString::size_type i = line.find('#');
if (i != CString::npos) {
line.erase(i);
}