File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
GeneralsMD/Code/GameEngine/Source/Common
Generals/Code/GameEngine/Source/Common Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ void RecorderClass::cleanUpReplayFile( void )
289289 {
290290 char fname[_MAX_PATH+1 ];
291291 strlcpy (fname, TheGlobalData->m_baseStatsDir .str (), ARRAY_SIZE (fname));
292- strncat (fname, m_fileName.str (), _MAX_PATH - strlen (fname));
292+ strlcat (fname, m_fileName.str (), ARRAY_SIZE (fname));
293293 DEBUG_LOG ((" Saving replay to %s" , fname));
294294 AsciiString oldFname;
295295 oldFname.format (" %s%s" , getReplayDir ().str (), m_fileName.str ());
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ void RecorderClass::cleanUpReplayFile( void )
289289 {
290290 char fname[_MAX_PATH+1 ];
291291 strlcpy (fname, TheGlobalData->m_baseStatsDir .str (), ARRAY_SIZE (fname));
292- strncat (fname, m_fileName.str (), _MAX_PATH - strlen (fname));
292+ strlcat (fname, m_fileName.str (), ARRAY_SIZE (fname));
293293 DEBUG_LOG ((" Saving replay to %s" , fname));
294294 AsciiString oldFname;
295295 oldFname.format (" %s%s" , getReplayDir ().str (), m_fileName.str ());
You can’t perform that action at this time.
0 commit comments