doc/util/dbtoman: Coverity 88750
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 01:11:12 +0000 (02:11 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 01:11:12 +0000 (02:11 +0100)
cde/doc/util/dbtoman/instant/tranvar.c

index 5a800808866903dc4cb1da0ed6fc10996729fe49..6de25d13be66c7179a3f7e668dda262812c68d8a 100644 (file)
@@ -767,7 +767,7 @@ Find(
     else if (StrEq(av[0], "attr")) {
        DS.gi     = av[2];
        DS.gi2    = av[3];
-       strcpy(DS.action, av[4]);
+       snprintf(DS.action, sizeof(DS.action), "%s", av[4]);
        DescendTree(e, tr_find_attr, 0, 0, &DS);
     }
 }