summaryrefslogtreecommitdiff
path: root/scheduler/cups-lpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'scheduler/cups-lpd.c')
-rw-r--r--scheduler/cups-lpd.c2
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,