projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
199bb76
)
dtcm: Coverity 89423
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:00:47 +0000
(
01:00
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:00:47 +0000
(
01:00
+0100)
cde/programs/dtcm/dtcm/dssw.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/dtcm/dssw.c
b/cde/programs/dtcm/dtcm/dssw.c
index d0add5e09fde8eb0325059bf32d8905f2df7a5d1..ca3b6af626d6c6391053eade443881db12d15f68 100644
(file)
--- a/
cde/programs/dtcm/dtcm/dssw.c
+++ b/
cde/programs/dtcm/dtcm/dssw.c
@@
-862,7
+862,7
@@
get_dssw_times(DSSW *dssw) {
XmToggleButtonGetState(dssw->start_am) ? TIME_AM : TIME_PM;
str = XmTextGetString(dssw->stop_text);
- s
trcpy(dssw->stop_val.val
, str);
+ s
nprintf(dssw->stop_val.val, sizeof(dssw->stop_val.val), "%s"
, str);
XtFree(str);
dssw->stop_val.block =
XmToggleButtonGetState(dssw->stop_am) ? TIME_AM : TIME_PM;