Merge pull request #1121 from bpay/fix-buffer-overflows

Fix buffer overflows
This commit is contained in:
Luis Anton Rebollo 2015-02-02 20:15:51 +01:00
commit cc9be50422
20 changed files with 112 additions and 114 deletions

View file

@ -279,7 +279,7 @@ void GuiTextEditCtrl::setText( const UTF16* txt)
{
if(txt && txt[0] != 0)
{
UTF8* txt8 = convertUTF16toUTF8( txt );
UTF8* txt8 = createUTF8string( txt );
Parent::setText( txt8 );
delete[] txt8;
mTextBuffer.set( txt );