X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b2d1c74fe9778f360b09b3171525c93391df9ce..43c974071f54aaf4ab906b2ac9f27098cd7534b0:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index c59af3cb3f..0687124fe8 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -329,7 +329,7 @@ void wxLog::OnLog(wxLogLevel level, const wxChar *szString, time_t t) { if ( GetRepetitionCounting() ) { - pLogger->DoLogNumberOfRepeats(); + DoLogNumberOfRepeats(); } ms_prevString = szString; ms_prevLevel = level; @@ -555,8 +555,8 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t)) TimeStamp(&str); str << szString; - fputs(str.mb_str(), m_fp); - fputc(_T('\n'), m_fp); + wxFputs(str, m_fp); + wxFputc(_T('\n'), m_fp); fflush(m_fp); // under GUI systems such as Windows or Mac, programs usually don't have