diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2024-01-13 11:12:08 +0100 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2024-01-13 12:14:24 +0100 |
commit | da5f665be3d6d818e208c05238131444ec934a80 (patch) | |
tree | eb9bb63a9c0508e874e54752fc07b89f3dbfe615 /print/hplip/files/patch-protocol_hp__ipp.c | |
parent | security/beid: Update to 5.1.13 (diff) |
print/hplip(-plugin): Update to 3.23.12
Diffstat (limited to 'print/hplip/files/patch-protocol_hp__ipp.c')
-rw-r--r-- | print/hplip/files/patch-protocol_hp__ipp.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/print/hplip/files/patch-protocol_hp__ipp.c b/print/hplip/files/patch-protocol_hp__ipp.c deleted file mode 100644 index f25f08f88867..000000000000 --- a/print/hplip/files/patch-protocol_hp__ipp.c +++ /dev/null @@ -1,46 +0,0 @@ ---- protocol/hp_ipp.c.orig 2023-09-13 04:07:44 UTC -+++ protocol/hp_ipp.c -@@ -108,9 +108,6 @@ int addCupsPrinter(char *name, char *device_uri, char - goto abort; - } - -- if ( info == NULL ) -- snprintf( info,sizeof(info), name ); -- - sprintf(printer_uri, "ipp://localhost/printers/%s", name); - - cupsSetUser("root"); -@@ -514,27 +511,27 @@ int __parsePrinterAttributes(ipp_t *response, printer_ - - if ( strcmp(attr_name, "printer-name") == 0 && - val_tag == IPP_TAG_NAME ) { -- snprintf(t_printer->name, sizeof(t_printer->name),ippGetString(attr, 0, NULL) ); -+ snprintf(t_printer->name, sizeof(t_printer->name), "%s", ippGetString(attr, 0, NULL) ); - } - else if ( strcmp(attr_name, "device-uri") == 0 && - val_tag == IPP_TAG_URI ) { -- snprintf(t_printer->device_uri,sizeof(t_printer->device_uri), ippGetString(attr, 0, NULL) ); -+ snprintf(t_printer->device_uri,sizeof(t_printer->device_uri), "%s", ippGetString(attr, 0, NULL) ); - } - else if ( strcmp(attr_name, "printer-uri-supported") == 0 && - val_tag == IPP_TAG_URI ) { -- snprintf(t_printer->printer_uri,sizeof(t_printer->printer_uri), ippGetString(attr, 0, NULL) ); -+ snprintf(t_printer->printer_uri,sizeof(t_printer->printer_uri), "%s", ippGetString(attr, 0, NULL) ); - } - else if ( strcmp(attr_name, "printer-info") == 0 && - val_tag == IPP_TAG_TEXT ) { -- snprintf(t_printer->info,sizeof(t_printer->info), ippGetString(attr, 0, NULL) ); -+ snprintf(t_printer->info,sizeof(t_printer->info), "%s", ippGetString(attr, 0, NULL) ); - } - else if ( strcmp(attr_name, "printer-location") == 0 && - val_tag == IPP_TAG_TEXT ) { -- snprintf(t_printer->location,sizeof(t_printer->location),ippGetString(attr, 0, NULL) ); -+ snprintf(t_printer->location,sizeof(t_printer->location), "%s", ippGetString(attr, 0, NULL) ); - } - else if ( strcmp(attr_name, "printer-make-and-model") == 0 && - val_tag == IPP_TAG_TEXT ) { -- snprintf(t_printer->make_model,sizeof(t_printer->make_model),ippGetString(attr, 0, NULL) ); -+ snprintf(t_printer->make_model,sizeof(t_printer->make_model), "%s", ippGetString(attr, 0, NULL) ); - } - else if ( strcmp(attr_name, "printer-state") == 0 && - val_tag == IPP_TAG_ENUM ) { |