diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-05 13:49:55 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-05 13:49:55 +0000 |
| commit | a71f44baa521e2fb867db8536d7766e7d02f3e32 (patch) | |
| tree | 3b2075c2d73c527d00b36308faac76e4040fd797 /src/config/ConfigManager.cpp | |
| parent | 65db3a7bd371db99fba79799ee817054f13c2977 (diff) | |
fix compiler warning
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 829b0230..e64fc86b 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1071,7 +1071,7 @@ void CConfigManager::parseLine(std::string& line) { } size_t startPos = 0; - while ((startPos = line.find("##", startPos)) != std::string::npos) { + while (startPos < line.length() - 1 && (startPos = line.find("##", startPos)) != std::string::npos) { line.replace(startPos, 2, "#"); startPos++; } |
