mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Merge branch 'StreamOverflow' of https://github.com/Azaezel/Torque3D into development
This commit is contained in:
commit
164dca747a
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ void Stream::readLongString(U32 maxStringLen, char *stringBuf)
|
||||||
{
|
{
|
||||||
U32 len;
|
U32 len;
|
||||||
read(&len);
|
read(&len);
|
||||||
if(len > maxStringLen)
|
if(len >= maxStringLen)
|
||||||
{
|
{
|
||||||
m_streamStatus = IOError;
|
m_streamStatus = IOError;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue