dtprintinfo: Coverity 89488
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:47:31 +0000 (01:47 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:47:31 +0000 (01:47 +0100)
cde/programs/dtprintinfo/UI/DtMainW.C

index f0256be6c6ae3342fc8786d2e0f56f1bc4aaf0b2..952047c201f69ca27c40cb4cce9d3659a4bec205 100644 (file)
@@ -123,7 +123,7 @@ void DtMainW::DisplayHelp(char *location_id, char *volume)
 {
    char old_msg[200];
 
-   strcpy(old_msg, status_line->Name());
+   snprintf(old_msg, sizeof(old_msg), "%s", status_line->Name());
    status_line->Name(MESSAGE(GettingHelpL));
    WorkingCursor(true);
    if (!helpSystem)