From 199bb761af2cff2623c11fb3bf92347796772e96 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 00:57:17 +0100 Subject: [PATCH] dtcm: Coverity 88978 --- cde/programs/dtcm/dtcm/dssw.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.25.1