]> git.saurik.com Git - wxWidgets.git/commitdiff
calling FormatV seems to be correct, as we are already passing a va_list
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 17 May 2004 20:17:47 +0000 (20:17 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 17 May 2004 20:17:47 +0000 (20:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wxchar.cpp

index ce74d2bd617dd0dd6c33287e64dbceaf0a31b160..c09896179c24660590c198041c1b383adcd5eaba 100644 (file)
@@ -962,9 +962,9 @@ int wxSprintf( wxChar *str, const wxChar *format, ... )
     va_list argptr;
     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
-    wxString s(wxString::Format(format, argptr));
+    wxString s(wxString::FormatV(format, argptr));
     wxStrcpy(str, s);
 
     va_end(argptr);