From: Peter Howkins Date: Wed, 4 Jul 2018 00:29:49 +0000 (+0100) Subject: libDtHelp: Coverity 88776 X-Git-Tag: 2.3.0a~215 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=045643d4db1b80c8ed79ab45b2b60bf42e693ea9;p=oweals%2Fcde.git libDtHelp: Coverity 88776 --- 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