calling FormatV seems to be correct, as we are already passing a va_list
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -962,9 +962,9 @@ int wxSprintf( wxChar *str, const wxChar *format, ... )
|
|||||||
va_list argptr;
|
va_list argptr;
|
||||||
va_start(argptr, format);
|
va_start(argptr, format);
|
||||||
|
|
||||||
// note that wxString::Format() uses wxVsnprintf(), not wxSprintf(), so
|
// note that wxString::FormatV() uses wxVsnprintf(), not wxSprintf(), so
|
||||||
// it's safe to implement this one in terms of it
|
// it's safe to implement this one in terms of it
|
||||||
wxString s(wxString::Format(format, argptr));
|
wxString s(wxString::FormatV(format, argptr));
|
||||||
wxStrcpy(str, s);
|
wxStrcpy(str, s);
|
||||||
|
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
|
Reference in New Issue
Block a user