increase worst case for UTF8 to *4

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton 2004-10-28 23:05:47 +00:00
parent 44d271da3e
commit 72606b430e

View File

@ -1902,7 +1902,7 @@ public:
if (szOut == NULL)
{
// worst case
nRealOutSize = ((nBufSize - 1) << 1)+1 ;
nRealOutSize = ((nBufSize - 1) << 2)+1 ;
szBuffer = new char[ nRealOutSize ] ;
}
else
@ -2079,7 +2079,7 @@ public:
if (buf == NULL)
{
// worst case
n = byteInLen * 2 ;
n = byteInLen << 1 ;
tbuf = (char*) malloc( n ) ;
}