1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtprintinfo: Coverity 88447

This commit is contained in:
Peter Howkins 2018-07-04 01:57:52 +01:00
parent 09f187d6be
commit 40b38d300b

View file

@ -1181,7 +1181,7 @@ int ParseAIXv3PrintJobs(char *_printer, char *jobs,
static char *job_list = NULL; static char *job_list = NULL;
static int prev_buf_size = 0; static int prev_buf_size = 0;
strcpy(printer, _printer); snprintf(printer, sizeof(printer), "%s", _printer);
if (s = strchr(printer, ':')) if (s = strchr(printer, ':'))
*s = '\0'; *s = '\0';