X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=systemv%2Fcancel.c;fp=systemv%2Fcancel.c;h=bcd638cc44e423c71282c11687a9a3d1a5e74b4c;hb=064e50fb06e83e6c1756e2a81c2fcbd4d6fca8e6;hp=c85a86e0cac3402b934413f305efe5d0032f95a4;hpb=6918883fba4942931dc455b32545d6edf18dec5c;p=thirdparty%2Fcups.git diff --git a/systemv/cancel.c b/systemv/cancel.c index c85a86e0c..bcd638cc4 100644 --- a/systemv/cancel.c +++ b/systemv/cancel.c @@ -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); }