mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +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
|
|
@ -585,7 +585,7 @@ bool Platform::FS::InstallFileSystems()
|
|||
{
|
||||
// add trailing '/' if it isn't there
|
||||
if (buffer[dStrlen(buffer) - 1] != '/')
|
||||
dStrcat(buffer, "/");
|
||||
dStrcat(buffer, "/", PATH_MAX);
|
||||
|
||||
Platform::FS::SetCwd(buffer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue