mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Engine was also using raw strcat/strcpy
This commit is contained in:
parent
e6e97e660c
commit
dce7f5f6b3
4 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue