dtprintinfo: Coverity 89561
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:45:39 +0000 (01:45 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:45:39 +0000 (01:45 +0100)
cde/programs/dtprintinfo/UI/DtFindSet.C

index 22d7eac360c91a0a5b423e1a2d35db60cd8e8d92..56153eab61c44d88c6360e5143db56889120f0b0 100644 (file)
@@ -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);