From 539125ef9cd639a4a2eea31d4612f5258781ae0a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 18 Sep 2003 14:10:16 +0000 Subject: [PATCH] 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 --- src/common/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/string.cpp b/src/common/string.cpp index 136f46f224..d2c5e8c052 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -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;