1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-26 00:58:37 +02:00

convert wxstring to C string before passing to printf, compile error on GCC and run-time crash for Visual C++

This commit is contained in:
richardash1981 2012-11-27 21:44:05 +00:00
parent 77c4d7e10c
commit c1e09f4aa8

View File

@ -1025,7 +1025,7 @@ void EqualizationDialog::LoadCurves(wxString fileName, bool append)
{ {
wxString msg; wxString msg;
/* i18n-hint: EQ stands for 'Equalization'.*/ /* i18n-hint: EQ stands for 'Equalization'.*/
msg.Printf(_("Error Loading EQ Curves from file:\n%s\nError message says:\n%s"), fn.GetFullPath(), reader.GetErrorStr()); msg.Printf(_("Error Loading EQ Curves from file:\n%s\nError message says:\n%s"), fn.GetFullPath().c_str(), reader.GetErrorStr().c_str());
// Inform user of load failure // Inform user of load failure
wxMessageBox( msg, wxMessageBox( msg,
_("Error Loading EQ Curves"), _("Error Loading EQ Curves"),