From ea58823eb415c459c4c14aaa673a1a5459af75e9 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 16:27:48 +0100 Subject: [PATCH] dtcm: Coverity 89423 --- cde/programs/dtcm/dtcm/dssw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/dssw.c b/cde/programs/dtcm/dtcm/dssw.c index ca3b6af6..2fc74954 100644 --- a/cde/programs/dtcm/dtcm/dssw.c +++ b/cde/programs/dtcm/dtcm/dssw.c @@ -856,7 +856,7 @@ get_dssw_times(DSSW *dssw) { char *str; str = XmTextGetString(dssw->start_text); - strcpy(dssw->start_val.val, str); + snprintf(dssw->start_val.val, sizeof(dssw->start_val.val), "%s", str); XtFree(str); dssw->start_val.block = XmToggleButtonGetState(dssw->start_am) ? TIME_AM : TIME_PM; -- 2.25.1