dtcm/dssw.c: Coverity CID 88672; dest buf too small

This commit is contained in:
Jon Trulson 2018-04-02 16:55:34 -06:00
parent f269c2a074
commit d5c304d476
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}