From c6dd25b884812a62e6e27d18923e3ce8d51dfa6b Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:47:31 +0100 Subject: [PATCH] dtprintinfo: Coverity 89488 --- cde/programs/dtprintinfo/UI/DtMainW.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtprintinfo/UI/DtMainW.C b/cde/programs/dtprintinfo/UI/DtMainW.C index f0256be6..952047c2 100644 --- a/cde/programs/dtprintinfo/UI/DtMainW.C +++ b/cde/programs/dtprintinfo/UI/DtMainW.C @@ -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) -- 2.25.1