mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Use strncat instead of strcat to prevent some buffer overflows
This commit is contained in:
parent
53f35e7fb1
commit
7769da9434
32 changed files with 147 additions and 134 deletions
|
|
@ -70,9 +70,9 @@ namespace Con
|
|||
ret[0] = 0;
|
||||
for (walk = ns; walk; walk = walk->mParent)
|
||||
{
|
||||
dStrcat(ret, walk->mName);
|
||||
dStrcat(ret, walk->mName, size);
|
||||
if (walk->mParent)
|
||||
dStrcat(ret, " -> ");
|
||||
dStrcat(ret, " -> ", size);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue