mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user