From 1de8020c41de017809544f8419f372ffd6e4f922 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 00:54:54 +0100 Subject: [PATCH] dtcm: Coverity 89566 --- cde/programs/dtcm/dtcm/cm_insert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1