From: Peter Howkins Date: Fri, 13 Jul 2018 15:31:21 +0000 (+0100) Subject: dtcm: Coverity 88978 X-Git-Tag: 2.3.0a~144 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=89427d09729cc87589b77bb1f3e607cf2d054c6a;p=oweals%2Fcde.git dtcm: Coverity 88978 --- diff --git a/cde/programs/dtcm/dtcm/dssw.c b/cde/programs/dtcm/dtcm/dssw.c index 2fc74954..c5eeb8fe 100644 --- a/cde/programs/dtcm/dtcm/dssw.c +++ b/cde/programs/dtcm/dtcm/dssw.c @@ -88,7 +88,6 @@ dssw_get_non_times(DSSW *dssw, time_t t) { get_date_from_widget(t, dssw->date_text, ot, st)); str = XmTextGetString(dssw->what_text); - strcpy(dssw->what_val, str); snprintf(dssw->what_val, sizeof(dssw->what_val), "%s", str); XtFree(str); }