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

index 94167c87faea295a34bb771df777d8a3c3c40c4e..5b2ac47508e9728278ce9f9c7b06d1c386b6d347 100644 (file)
@@ -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);
          }