applied patch 430452 (mingw32 compilation fixes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -201,7 +201,8 @@ extern int WXDLLEXPORT wxVsnprintf(wxChar *buf, size_t len,
|
||||
int iLen = s.PrintfV(format, argptr);
|
||||
if ( iLen != -1 )
|
||||
{
|
||||
wxStrncpy(buf, s.c_str(), iLen);
|
||||
wxStrncpy(buf, s.c_str(), len);
|
||||
buf[len-1] = wxT('\0');
|
||||
}
|
||||
|
||||
return iLen;
|
||||
|
Reference in New Issue
Block a user