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:
263bcdc
)
dtcm: Coverity 89423
author
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 15:27:48 +0000
(16:27 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 15:27:48 +0000
(16:27 +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 ca3b6af626d6c6391053eade443881db12d15f68..2fc7495419b65ea1e800884960188b051a4fd9c9 100644
(file)
--- a/
cde/programs/dtcm/dtcm/dssw.c
+++ b/
cde/programs/dtcm/dtcm/dssw.c
@@
-856,7
+856,7
@@
get_dssw_times(DSSW *dssw) {
char *str;
str = XmTextGetString(dssw->start_text);
- s
trcpy(dssw->start_val.val
, str);
+ s
nprintf(dssw->start_val.val, sizeof(dssw->start_val.val), "%s"
, str);
XtFree(str);
dssw->start_val.block =
XmToggleButtonGetState(dssw->start_am) ? TIME_AM : TIME_PM;