mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-25 14:25:38 +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
|
|
@ -129,7 +129,7 @@ void GFXGLDevice::enumerateAdapters( Vector<GFXAdapter*> &adapterList )
|
|||
if (renderer)
|
||||
{
|
||||
dStrcpy(toAdd->mName, renderer);
|
||||
dStrncat(toAdd->mName, " OpenGL", GFXAdapter::MaxAdapterNameLen);
|
||||
dStrcat(toAdd->mName, " OpenGL", GFXAdapter::MaxAdapterNameLen);
|
||||
}
|
||||
else
|
||||
dStrcpy(toAdd->mName, "OpenGL");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue