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:
25e371d
)
dtcm: Coverity 89566
author
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 23:54:54 +0000
(
00:54
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 23:54:54 +0000
(
00:54
+0100)
cde/programs/dtcm/dtcm/cm_insert.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/dtcm/cm_insert.c
b/cde/programs/dtcm/dtcm/cm_insert.c
index 614e001fd6b43790b729233da7cdc4f68fb5aae9..f445141beb97948879df1297e56ea6da83c9b0ca 100644
(file)
--- a/
cde/programs/dtcm/dtcm/cm_insert.c
+++ b/
cde/programs/dtcm/dtcm/cm_insert.c
@@
-212,7
+212,7
@@
prompt_for_insert(Props *p) {
prompt_for_line(
catgets(DT_catd, 1, 199, "End (%s): "), "None", cm_end);
- s
trcpy(cm_repeatstr
, catgets(DT_catd, 1, 200, "One Time"));
+ s
nprintf(cm_repeatstr, sizeof(cm_repeatstr), "%s"
, catgets(DT_catd, 1, 200, "One Time"));
prompt_for_line(catgets(DT_catd, 1, 201,
"Repeat (%s): "), cm_repeatstr, cm_repeatstr);