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:
Stefan Csomor
2004-05-17 20:17:47 +00:00
parent 5e4ca4a837
commit 56413ebff7

View File

@@ -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);