dtprintinfo: Coverity 88447

This commit is contained in:
Peter Howkins 2018-07-04 01:57:52 +01:00
parent 09f187d6be
commit 40b38d300b
1 changed files with 1 additions and 1 deletions

View File

@ -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';