From: Peter Howkins Date: Tue, 3 Jul 2018 23:54:54 +0000 (+0100) Subject: dtcm: Coverity 89566 X-Git-Tag: 2.3.0a~224 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1de8020c41de017809544f8419f372ffd6e4f922;p=oweals%2Fcde.git dtcm: Coverity 89566 --- diff --git a/cde/programs/dtcm/dtcm/cm_insert.c b/cde/programs/dtcm/dtcm/cm_insert.c index 614e001f..f445141b 100644 --- a/cde/programs/dtcm/dtcm/cm_insert.c +++ b/cde/programs/dtcm/dtcm/cm_insert.c @@ -212,7 +212,7 @@ prompt_for_insert(Props *p) { prompt_for_line( catgets(DT_catd, 1, 199, "End (%s): "), "None", cm_end); - strcpy(cm_repeatstr, catgets(DT_catd, 1, 200, "One Time")); + snprintf(cm_repeatstr, sizeof(cm_repeatstr), "%s", catgets(DT_catd, 1, 200, "One Time")); prompt_for_line(catgets(DT_catd, 1, 201, "Repeat (%s): "), cm_repeatstr, cm_repeatstr);