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:
ccd9f88
)
dtprintinfo: Coverity 89561
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:45:39 +0000
(
01:45
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 00:45:39 +0000
(
01:45
+0100)
cde/programs/dtprintinfo/UI/DtFindSet.C
patch
|
blob
|
history
diff --git
a/cde/programs/dtprintinfo/UI/DtFindSet.C
b/cde/programs/dtprintinfo/UI/DtFindSet.C
index 22d7eac360c91a0a5b423e1a2d35db60cd8e8d92..56153eab61c44d88c6360e5143db56889120f0b0 100644
(file)
--- a/
cde/programs/dtprintinfo/UI/DtFindSet.C
+++ b/
cde/programs/dtprintinfo/UI/DtFindSet.C
@@
-236,7
+236,8
@@
void DtFindSet::HelpCB(void *data)
boolean DtFindSet::HandleHelpRequest()
{
char old_msg[200];
- strcpy(old_msg, mainw->status_line->Name());
+
+ snprintf(old_msg, sizeof(old_msg), "%s", mainw->status_line->Name());
mainw->status_line->Name(MESSAGE(GettingHelpL));
mainw->WorkingCursor(true);