Skip to content

Commit

Permalink
Pass correct parameters to cupsStartDestDocument (#36)
Browse files Browse the repository at this point in the history
Now job title and job attributes (options) are correctly passed on.
  • Loading branch information
metabiswadeep authored Sep 5, 2024
1 parent 4d7a656 commit dc56f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,8 +1444,8 @@ void print_socket(PrinterCUPS *p, int num_settings, GVariant *settings, char *jo
cupsCreateDestJob(p->http, p->dest, p->dinfo,
&job_id, title, num_options, options);
cupsStartDestDocument(p->http, p->dest, p->dinfo,
job_id, NULL, CUPS_FORMAT_AUTO,
0, NULL, 1);
job_id, title, CUPS_FORMAT_AUTO,
num_options, options, 1);

int socket_fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (socket_fd == -1) {
Expand Down

0 comments on commit dc56f23

Please sign in to comment.