From 419a7efff4541e7327bc1c4e28c4d8f16fb81035 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:45:39 +0100 Subject: [PATCH] dtprintinfo: Coverity 89561 --- cde/programs/dtprintinfo/UI/DtFindSet.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtprintinfo/UI/DtFindSet.C b/cde/programs/dtprintinfo/UI/DtFindSet.C index 22d7eac3..56153eab 100644 --- 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); -- 2.25.1