mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Use strncat instead of strcat to prevent some buffer overflows
This commit is contained in:
parent
bf408235a8
commit
1728fe39ad
32 changed files with 147 additions and 134 deletions
|
|
@ -275,7 +275,7 @@ DefineConsoleMethod(FieldBrushObject, queryFields, const char*, (const char* sim
|
|||
// Copy string element.
|
||||
dStrcpy( tempBuf, StringUnit::getUnit( groupList, groupIndex, " \t\n" ) );
|
||||
// Append internal name.
|
||||
dStrcat( tempBuf, "_begingroup" );
|
||||
dStrcat( tempBuf, "_begingroup", 256 );
|
||||
// Store Group.
|
||||
groups.push_back( StringTable->insert( tempBuf ) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue