libDtHelp: Coverity 89548
This commit is contained in:
parent
045643d4db
commit
49b69c257a
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue