summaryrefslogtreecommitdiff
path: root/spooler.c
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2012-06-18 21:31:45 +0200
committerTill Kamppeter <till.kamppeter@gmail.com>2012-06-18 21:31:45 +0200
commita3f8b29532f3cd5902eb468b6318573b1d59778e (patch)
tree3e3badb4c2b786c8539a81c987a2b3b6ac34c98d /spooler.c
parent399d0e9fca6341340fdfaeb4566b23eec2fb99d3 (diff)
parentca7afd6b61bfd6d390ca91dc4b91c0943145e307 (diff)
Merge tag 'upstream/4.0.16'
Upstream version 4.0.16
Diffstat (limited to 'spooler.c')
-rw-r--r--spooler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spooler.c b/spooler.c
index 150aed7..10289ae 100644
--- a/spooler.c
+++ b/spooler.c
@@ -274,7 +274,7 @@ void init_cups(list_t *arglist, dstr_t *filelist, jobparams_t *job)
cups_options_len = strlen(arglist_get(arglist, 4));
cups_options = malloc(cups_options_len + 1);
- strncpy_omit(cups_options, arglist_get(arglist, 4), cups_options_len, omit_shellescapes);
+ strncpy_omit(cups_options, arglist_get(arglist, 4), cups_options_len + 1, omit_shellescapes);
/* Common job parameters */
strcpy(job->id, cups_jobid);