libDtHelp: Coverity 88776
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:29:49 +0000 (01:29 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:29:49 +0000 (01:29 +0100)
cde/lib/DtHelp/Access.c

index 49bcded54d8bc8ce14cafcc9bab3bb8c50517daf..94167c87faea295a34bb771df777d8a3c3c40c4e 100644 (file)
@@ -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