diff --git a/Config.cpp b/Config.cpp index 833a1fa4..1e18e198 100644 --- a/Config.cpp +++ b/Config.cpp @@ -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) { diff --git a/ZNCString.h b/ZNCString.h index 2c9b979f..85a44b21 100644 --- a/ZNCString.h +++ b/ZNCString.h @@ -89,6 +89,7 @@ public: CString(const char* c) : string(c) {} CString(const char* c, size_t l) : string(c, l) {} CString(const string& s) : string(s) {} + CString(size_t n, char c) : string(n, c) {} ~CString() {} /**