Skip to content
Permalink
Browse files

Fix wxWidgets assertion error on `Logging...` menu.

  • Loading branch information
denisfa authored and rkitover committed Jul 26, 2019
1 parent c886b6a commit 855db11d980dd3e666450fce551da9e19bfca7eb
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/wx/sys.cpp
@@ -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);

0 comments on commit 855db11

Please sign in to comment.
You can’t perform that action at this time.