dtcm: Coverity 88978
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 15:31:21 +0000 (16:31 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 15:31:21 +0000 (16:31 +0100)
cde/programs/dtcm/dtcm/dssw.c

index 2fc7495419b65ea1e800884960188b051a4fd9c9..c5eeb8fedf3c37e8871457869ef88ff4f60dfb20 100644 (file)
@@ -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);
 }