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