Applied patch [ 808125 ] wxString::PrintfV() truncating at 1024 bytes string

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-09-18 14:10:16 +00:00
parent d1ce423c3e
commit 539125ef9c

View File

@@ -1289,7 +1289,7 @@ int wxString::PrintfV(const wxChar* pszFormat, va_list argptr)
UngetWriteBuf();
if ( len >= 0 )
if ( (len >= 0) && (len <= size) )
{
// ok, there was enough space
break;