From: Peter Howkins Date: Fri, 13 Jul 2018 15:36:56 +0000 (+0100) Subject: dtcm: Coverity 88672 X-Git-Tag: 2.3.0a~141 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8e9d0e528266d9a95040ddeb005b4b3c60b2b1d6;p=oweals%2Fcde.git dtcm: Coverity 88672 --- diff --git a/cde/programs/dtcm/dtcm/dssw.c b/cde/programs/dtcm/dtcm/dssw.c index c5eeb8fe..ec9dac5f 100644 --- a/cde/programs/dtcm/dtcm/dssw.c +++ b/cde/programs/dtcm/dtcm/dssw.c @@ -933,7 +933,7 @@ load_dssw_times(DSSW *dssw, Tick start, Tick stop, Boolean set_no_time) { dssw->start_val.block = (buf[5] == 'a') ? TIME_AM : TIME_PM; } else { - strcpy(dssw->start_val.val, buf); + snprintf(dssw->start_val.val, sizefof(dssw->start_val.val), "%s", buf); dssw->start_val.block = TIME_AM; } }