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