libDtHelp: Coverity 88813
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:32:53 +0000 (01:32 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:32:53 +0000 (01:32 +0100)
cde/lib/DtHelp/AccessCCDF.c

index f9b135e31468d3f6f53cd932f1f28eb57876c4fa..11bff49005077d1e8c4d2ece53501468a0247085 100644 (file)
@@ -908,7 +908,7 @@ _DtHelpCeFindCcdfId (
     char       *topicId = NULL;
     int   found = False;
 
-    strcpy (newTarget, target_id);
+    snprintf(newTarget, sizeof(newTarget), "%s", target_id);
     _DtHelpCeUpperCase(newTarget);
 
     /*