Excise snprintf -> slprintf.
[kai/samba.git] / source3 / printing / print_cups.c
index 1e45df0c63ede618e22f41641d29867cdb541a4c..8739ddcec42f4889097a2ff50f5b364d6d85711f 100644 (file)
@@ -171,7 +171,7 @@ int cups_printername_ok(char *name)
        ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
                      "attributes-natural-language", NULL, language->language);
 
-       snprintf(uri, sizeof(uri), "ipp://localhost/printers/%s", dos_to_unix(name,False));
+       slprintf(uri, sizeof(uri)-1, "ipp://localhost/printers/%s", dos_to_unix(name,False));
 
        ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI,
                      "printer-uri", NULL, uri);