diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-04-05 15:57:50 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-04-05 15:57:50 -0400 |
commit | 064e50fb06e83e6c1756e2a81c2fcbd4d6fca8e6 (patch) | |
tree | 45145c8db9a634af861cb1ed87a7378837e72763 /scheduler/cups-lpd.c | |
parent | 6918883fba4942931dc455b32545d6edf18dec5c (diff) | |
download | cups-064e50fb06e83e6c1756e2a81c2fcbd4d6fca8e6.tar.gz |
Import all of the bug fixes from the OpenPrinting CUPS repository.
Import the improvements to ippeveprinter from OpenPrinting/ippsample.
Import the improvements to ippfind and ipptool from OpenPrinting/ippsample.
Diffstat (limited to 'scheduler/cups-lpd.c')
-rw-r--r-- | scheduler/cups-lpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scheduler/cups-lpd.c b/scheduler/cups-lpd.c index 0da3d0c06..7b1dc4834 100644 --- a/scheduler/cups-lpd.c +++ b/scheduler/cups-lpd.c @@ -1268,7 +1268,7 @@ remove_jobs(const char *dest, /* I - Destination */ request = ippNewRequest(IPP_OP_CANCEL_JOB); - sprintf(uri, "ipp://localhost/jobs/%d", id); + snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", id); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, |