From: Vadim Zeitlin Date: Sat, 20 Mar 2004 13:44:06 +0000 (+0000) Subject: compilation fix for the last wxSprintf() change X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a4e0917b480a57b71b84d34b5ab0b860712e23c7 compilation fix for the last wxSprintf() change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index f7649183cc..a7a37548aa 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -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, ... )