diff --git a/src/common/log.cpp b/src/common/log.cpp index cf52fe3a69..1e4db45ec6 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -597,7 +597,7 @@ void wxLogStream::DoLogString(const wxChar *szString, time_t WXUNUSED(t)) { wxString str; TimeStamp(&str); - (*m_ostr) << wxConvertWX2MB(str) << wxConvertWX2MB(szString) << wxSTD endl; + (*m_ostr) << wxSafeConvertWX2MB(str) << wxSafeConvertWX2MB(szString) << wxSTD endl; } #endif // wxUSE_STD_IOSTREAM