From d5c304d476be11eb67101effb07ab4087031473b Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Mon, 2 Apr 2018 16:55:34 -0600 Subject: [PATCH] dtcm/dssw.c: Coverity CID 88672; dest buf too small --- cde/programs/dtcm/dtcm/dssw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/dssw.c b/cde/programs/dtcm/dtcm/dssw.c index 8ab3c8df..61d637a6 100644 --- a/cde/programs/dtcm/dtcm/dssw.c +++ b/cde/programs/dtcm/dtcm/dssw.c @@ -945,7 +945,7 @@ load_dssw_times(DSSW *dssw, Tick start, Tick stop, Boolean set_no_time) { dssw->stop_val.block = (buf[5] == 'a') ? TIME_AM : TIME_PM; } else { - strcpy(dssw->stop_val.val, buf); + snprinf(dssw->stop_val.val, START_STOP_LEN, "%s", buf); dssw->stop_val.block = TIME_AM; } } -- 2.25.1