From: Peter Howkins Date: Tue, 3 Jul 2018 23:57:17 +0000 (+0100) Subject: dtcm: Coverity 88978 X-Git-Tag: 2.3.0a~223 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=199bb761af2cff2623c11fb3bf92347796772e96;p=oweals%2Fcde.git dtcm: Coverity 88978 --- diff --git a/cde/programs/dtcm/dtcm/dssw.c b/cde/programs/dtcm/dtcm/dssw.c index b1440fea..d0add5e0 100644 --- a/cde/programs/dtcm/dtcm/dssw.c +++ b/cde/programs/dtcm/dtcm/dssw.c @@ -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); }