From: Peter Howkins Date: Wed, 4 Jul 2018 00:53:56 +0000 (+0100) Subject: dtprintinfo: Coverity 88097 X-Git-Tag: 2.3.0a~203 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a38c04970373be9c1e6341d2135c00e8ef3b61c3;p=oweals%2Fcde.git dtprintinfo: Coverity 88097 --- diff --git a/cde/programs/dtprintinfo/UI/DtPrtJobIcon.C b/cde/programs/dtprintinfo/UI/DtPrtJobIcon.C index 7de0f616..02ae0eb0 100644 --- a/cde/programs/dtprintinfo/UI/DtPrtJobIcon.C +++ b/cde/programs/dtprintinfo/UI/DtPrtJobIcon.C @@ -103,7 +103,7 @@ void DtPrtJobIcon::PrintJobObj(PrintJob *job) { Name(job->DisplayName()); BottomString(GetBotString(mainw, Parent(), job)); - strcpy(job_number, job->AttributeValue((char *)JOB_NUMBER)); + snprintf(job_number, sizeof(job_number), "%s", job->AttributeValue((char *)JOB_NUMBER)); if (props) { props->Visible(false);