libDtHelp: Coverity 89548

This commit is contained in:
Peter Howkins 2018-07-04 01:31:19 +01:00
parent 045643d4db
commit 49b69c257a
1 changed files with 1 additions and 1 deletions

View File

@ -1520,7 +1520,7 @@ _DtHelpCeTraceFilenamePath (char *file_path)
/*
* copy the new path and free the allocated copy
*/
strcpy (newName, newPath);
snprintf(newName, sizeof(newName), "%s", newPath);
free (newPath);
}