From 045643d4db1b80c8ed79ab45b2b60bf42e693ea9 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:29:49 +0100 Subject: [PATCH] libDtHelp: Coverity 88776 --- 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 49bcded5..94167c87 100644 --- a/cde/lib/DtHelp/Access.c +++ b/cde/lib/DtHelp/Access.c @@ -1396,7 +1396,7 @@ _DtHelpCeTracePathName (char *path) * for tacking on after the new link path has been * dropped into the path. */ - strcpy (tempPath, ptr); + snprintf(tempPath, sizeof(tempPath), "%s", ptr); /* * is it an absolute path? Simply replace the path -- 2.25.1