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:
1de8020
)
dtcm: Coverity 88978
author
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 23:57:17 +0000
(
00:57
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 23:57:17 +0000
(
00:57
+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 b1440fea643ecbddbb760806e7c1baffbb70cae1..d0add5e09fde8eb0325059bf32d8905f2df7a5d1 100644
(file)
--- a/
cde/programs/dtcm/dtcm/dssw.c
+++ b/
cde/programs/dtcm/dtcm/dssw.c
@@
-89,6
+89,7
@@
dssw_get_non_times(DSSW *dssw, time_t t) {
str = XmTextGetString(dssw->what_text);
strcpy(dssw->what_val, str);
+ snprintf(dssw->what_val, sizeof(dssw->what_val), "%s", str);
XtFree(str);
}