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:
parent
b34c7f3ca9
commit
14ff7a5992
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user