mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm/dssw.c: Coverity CID 88672; dest buf too small
This commit is contained in:
parent
f269c2a074
commit
d5c304d476
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue