mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 07:33:45 +00:00
Merge pull request #1121 from bpay/fix-buffer-overflows
Fix buffer overflows
This commit is contained in:
commit
cc9be50422
20 changed files with 112 additions and 114 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue