From: Peter Howkins Date: Wed, 4 Jul 2018 01:11:12 +0000 (+0100) Subject: doc/util/dbtoman: Coverity 88750 X-Git-Tag: 2.3.0a~196 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0b7653abff3f41ea09a0f83ac1d62adfad1a3391;p=oweals%2Fcde.git doc/util/dbtoman: Coverity 88750 --- diff --git a/cde/doc/util/dbtoman/instant/tranvar.c b/cde/doc/util/dbtoman/instant/tranvar.c index 5a800808..6de25d13 100644 --- a/cde/doc/util/dbtoman/instant/tranvar.c +++ b/cde/doc/util/dbtoman/instant/tranvar.c @@ -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); } }