]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/cancel.c
Import all of the bug fixes from the OpenPrinting CUPS repository.
[thirdparty/cups.git] / systemv / cancel.c
index c85a86e0cac3402b934413f305efe5d0032f95a4..bcd638cc44e423c71282c11687a9a3d1a5e74b4c 100644 (file)
@@ -274,7 +274,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
       }
       else
       {
-        sprintf(uri, "ipp://localhost/jobs/%d", job_id);
+        snprintf(uri, sizeof(uri), "ipp://localhost/jobs/%d", job_id);
        ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL,
                     uri);
       }