compilation fix for the last wxSprintf() change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -921,11 +921,12 @@ int wxSprintf( wxChar *str, const wxChar *format, ... )
|
||||
|
||||
// note that wxString::Format() uses wxVsnprintf(), not wxSprintf(), so
|
||||
// it's safe to implement this one in terms of it
|
||||
wxStrcpy(str, wxString::Format(format, argptr));
|
||||
wxString s(wxString::Format(format, argptr));
|
||||
wxStrcpy(str, s);
|
||||
|
||||
va_end(argptr);
|
||||
|
||||
return ret;
|
||||
return s.length();
|
||||
}
|
||||
|
||||
int wxFprintf( FILE *stream, const wxChar *format, ... )
|
||||
|
Reference in New Issue
Block a user