use wxFputs(s) instead of puts(s.mb_str()) to avoid crashes when conversion fails (see bug 1591388)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -555,8 +555,8 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
|
|||||||
TimeStamp(&str);
|
TimeStamp(&str);
|
||||||
str << szString;
|
str << szString;
|
||||||
|
|
||||||
fputs(str.mb_str(), m_fp);
|
wxFputs(str, m_fp);
|
||||||
fputc(_T('\n'), m_fp);
|
wxFputc(_T('\n'), m_fp);
|
||||||
fflush(m_fp);
|
fflush(m_fp);
|
||||||
|
|
||||||
// under GUI systems such as Windows or Mac, programs usually don't have
|
// under GUI systems such as Windows or Mac, programs usually don't have
|
||||||
|
Reference in New Issue
Block a user