From: Peter Howkins Date: Wed, 4 Jul 2018 00:31:19 +0000 (+0100) Subject: libDtHelp: Coverity 89548 X-Git-Tag: 2.3.0a~214 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=49b69c257ae18b5ab57dabb57f71e6983e2afbf1;p=oweals%2Fcde.git libDtHelp: Coverity 89548 --- diff --git a/cde/lib/DtHelp/Access.c b/cde/lib/DtHelp/Access.c index 94167c87..5b2ac475 100644 --- a/cde/lib/DtHelp/Access.c +++ b/cde/lib/DtHelp/Access.c @@ -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); }