mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix buffer corruption.
This commit is contained in:
parent
6d93e96dc3
commit
27a4868b6e
4 changed files with 14 additions and 7 deletions
|
|
@ -512,10 +512,13 @@ bool GameConnection::readConnectRequest(BitStream *stream, const char **errorStr
|
|||
connectArgv[2].setString(buffer);
|
||||
|
||||
// NOTE: Cannot convert over to IMPLEMENT_CALLBACK as it has variable args.
|
||||
const char *ret = Con::execute(this, mConnectArgc + 3, connectArgv);
|
||||
if(ret[0])
|
||||
ConsoleValue returnValue = Con::execute(this, mConnectArgc + 3, connectArgv);
|
||||
|
||||
StringTableEntry returnStr = StringTable->insert(returnValue.getString());
|
||||
|
||||
if(returnStr[0])
|
||||
{
|
||||
*errorString = ret;
|
||||
*errorString = returnStr;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue