mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
A buffer overflow in enumerateConsoleClassesByCategory
This commit is contained in:
parent
f9c684fb11
commit
ed10ce2511
1 changed files with 1 additions and 1 deletions
|
|
@ -888,7 +888,7 @@ DefineEngineFunction( enumerateConsoleClassesByCategory, const char*, ( String c
|
|||
&& ( repCategory[ categoryLength ] == ' ' || repCategory[ categoryLength ] == '\0' ) )
|
||||
{
|
||||
classes.push_back( rep );
|
||||
bufSize += dStrlen( rep->getClassName() + 1 );
|
||||
bufSize += dStrlen( rep->getClassName() ) + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue