dtcm: Coverity 88978
authorPeter Howkins <flibble@users.sf.net>
Tue, 3 Jul 2018 23:57:17 +0000 (00:57 +0100)
committerPeter Howkins <flibble@users.sf.net>
Tue, 3 Jul 2018 23:57:17 +0000 (00:57 +0100)
cde/programs/dtcm/dtcm/dssw.c

index b1440fea643ecbddbb760806e7c1baffbb70cae1..d0add5e09fde8eb0325059bf32d8905f2df7a5d1 100644 (file)
@@ -89,6 +89,7 @@ dssw_get_non_times(DSSW *dssw, time_t t) {
 
        str = XmTextGetString(dssw->what_text);
        strcpy(dssw->what_val, str);
+       snprintf(dssw->what_val, sizeof(dssw->what_val), "%s", str);
        XtFree(str);
 }