1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

libDtHelp: Coverity 89548

This commit is contained in:
Peter Howkins 2018-07-04 01:31:19 +01:00
parent 045643d4db
commit 49b69c257a

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);
}