1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

From Raphael Marinier: Fix Linux crash importing bad .wav file...

... A mistaken, unneeded change of a vsprintf format string caused a crashing
misinterpretation of a format argument; just writing errors to log.
This commit is contained in:
Paul Licameli 2018-01-24 12:35:22 -05:00
parent 2dbee940e0
commit e82fcf9549

View File

@ -140,11 +140,7 @@ void av_log_wx_callback(void* ptr, int level, const char* fmt, va_list vl)
#if defined(__WXMSW__)
frm.Replace(wxT("%t"),wxT("%i"),true); //TODO: on Windows vprintf won't handle %t, and probably some others. Investigate.
#endif
#if defined(wxUSE_UNICODE)
// String comes with %s format field and a value in value list is ascii char*. Thus in Unicode configurations
// we have to convert %s to %S.
frm.Replace(wxT("%s"),wxT("%S"),true);
#endif
printstring.Append(wxString::FormatV(frm,vl));
wxString cpt;
switch (level)