Skip to content

Commit

Permalink
Fix wxWidgets assertion error on Logging... menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
denisfa authored and rkitover committed Jul 26, 2019
1 parent c886b6a commit 855db11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wx/sys.cpp
Expand Up @@ -1294,8 +1294,10 @@ bool debugWaitSocket()
void log(const char* defaultMsg, ...)
{
va_list valist;
char buf[2048];
va_start(valist, defaultMsg);
wxString msg = wxString::Format(defaultMsg, valist);
vsnprintf(buf, 2048, defaultMsg, valist);
wxString msg = wxString(buf, wxConvLibc);
va_end(valist);
wxGetApp().log.append(msg);

Expand Down

0 comments on commit 855db11

Please sign in to comment.