From ccd9f88a6d8e2dd5455b6694bd10dafc09792fe7 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:43:29 +0100 Subject: [PATCH] dtprintinfo: Coverity 88414 --- cde/programs/dtprintinfo/UI/DtApp.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtprintinfo/UI/DtApp.C b/cde/programs/dtprintinfo/UI/DtApp.C index e956e698..dcc98dfa 100644 --- a/cde/programs/dtprintinfo/UI/DtApp.C +++ b/cde/programs/dtprintinfo/UI/DtApp.C @@ -1019,7 +1019,7 @@ char *DtApp::GetBottomString(BaseObj *job, boolean need_details) job->AttributeValue((char *)TIME_SUBMITTED), job->AttributeValue((char *)DATE_SUBMITTED)); else - strcpy(string, job->AttributeValue((char *)OWNER)); + snprintf(string, sizeof(string), "%s", job->AttributeValue((char *)OWNER)); } return string; } -- 2.25.1