Engine was also using raw strcat/strcpy

This commit is contained in:
Glenn Smith 2018-03-07 00:49:46 -05:00
parent 751ccae12d
commit 25c25b20b1
4 changed files with 6 additions and 6 deletions

View file

@ -182,8 +182,8 @@ extern "C" {
void torque_setexecutablepath(const char* directory)
{
gExecutablePath = new char[strlen(directory)+1];
strcpy(gExecutablePath, directory);
gExecutablePath = new char[dStrlen(directory)+1];
dStrcpy(gExecutablePath, directory, dStrlen(directory)+1);
}
// set Torque 3D into web deployment mode (disable fullscreen exlusive mode, etc)