From 2ea3d66112108982688a79709fd52eda4b0b5502 Mon Sep 17 00:00:00 2001 From: crs Date: Mon, 10 Jun 2002 09:49:21 +0000 Subject: [PATCH] fixed stripping of comments from configuration streams. --- server/CConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/CConfig.cpp b/server/CConfig.cpp index 4d82366d..167db361 100644 --- a/server/CConfig.cpp +++ b/server/CConfig.cpp @@ -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); }