Fix up indentation in config writing

This accidentally caused null bytes to be written to the config.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2011-08-21 17:09:49 +02:00
parent 26368a6c29
commit 2513149b42
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ bool CConfig::Parse(CFile& file, CString& sErrorMsg)
}
void CConfig::Write(CFile *pFile, unsigned int iIndentation) {
CString sIndentation = CString(" ", iIndentation);
CString sIndentation = CString(iIndentation, '\t');
for (EntryMapIterator it = m_ConfigEntries.begin(); it != m_ConfigEntries.end(); ++it) {
for (VCString::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2) {