From: Peter Howkins Date: Wed, 4 Jul 2018 00:45:39 +0000 (+0100) Subject: dtprintinfo: Coverity 89561 X-Git-Tag: 2.3.0a~207 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=419a7efff4541e7327bc1c4e28c4d8f16fb81035;p=oweals%2Fcde.git dtprintinfo: Coverity 89561 --- 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);