Use strncat instead of strcat to prevent some buffer overflows

This commit is contained in:
Glenn Smith 2018-03-06 00:48:44 -05:00
parent bf408235a8
commit 1728fe39ad
32 changed files with 147 additions and 134 deletions

View file

@ -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);
}