From 49b69c257ae18b5ab57dabb57f71e6983e2afbf1 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:31:19 +0100 Subject: [PATCH] libDtHelp: Coverity 89548 --- cde/lib/DtHelp/Access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.25.1