mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-23 22:24:45 +00:00
Merge branch 'StreamOverflow' of https://github.com/Azaezel/Torque3D into development
This commit is contained in:
commit
164dca747a
|
|
@ -155,7 +155,7 @@ void Stream::readLongString(U32 maxStringLen, char *stringBuf)
|
|||
{
|
||||
U32 len;
|
||||
read(&len);
|
||||
if(len > maxStringLen)
|
||||
if(len >= maxStringLen)
|
||||
{
|
||||
m_streamStatus = IOError;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue