From 40b38d300b111c9a0fb6a3af24e6573eeed26c5f Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:57:52 +0100 Subject: [PATCH] dtprintinfo: Coverity 88447 --- cde/programs/dtprintinfo/objects/PrintObj/ParseJobs.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtprintinfo/objects/PrintObj/ParseJobs.C b/cde/programs/dtprintinfo/objects/PrintObj/ParseJobs.C index 2adbcfdb..b970d7eb 100644 --- a/cde/programs/dtprintinfo/objects/PrintObj/ParseJobs.C +++ b/cde/programs/dtprintinfo/objects/PrintObj/ParseJobs.C @@ -1181,7 +1181,7 @@ int ParseAIXv3PrintJobs(char *_printer, char *jobs, static char *job_list = NULL; static int prev_buf_size = 0; - strcpy(printer, _printer); + snprintf(printer, sizeof(printer), "%s", _printer); if (s = strchr(printer, ':')) *s = '\0'; -- 2.25.1