From a38c04970373be9c1e6341d2135c00e8ef3b61c3 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:53:56 +0100 Subject: [PATCH] dtprintinfo: Coverity 88097 --- cde/programs/dtprintinfo/UI/DtPrtJobIcon.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1