mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Use strncpy instead of strcpy because again, buffer overflows
This commit is contained in:
parent
7769da9434
commit
79c34c68db
92 changed files with 298 additions and 279 deletions
|
|
@ -54,7 +54,7 @@ public:
|
|||
|
||||
// Allocate and copy the value.
|
||||
mpValue = new char[ dStrlen(pValue)+1 ];
|
||||
dStrcpy( (char *)mpValue, pValue );
|
||||
dStrcpy( (char *)mpValue, pValue, dStrlen(pValue) + 1 );
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -113,4 +113,4 @@ public:
|
|||
TamlCustomNodes mCustomNodes;
|
||||
};
|
||||
|
||||
#endif // _TAML_WRITE_NODE_H_
|
||||
#endif // _TAML_WRITE_NODE_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue