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:
parent
045643d4db
commit
49b69c257a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue