Skip to content

Commit dc56f23

Browse files
Pass correct parameters to cupsStartDestDocument (#36)
Now job title and job attributes (options) are correctly passed on.
1 parent 4d7a656 commit dc56f23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend_helper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,8 +1444,8 @@ void print_socket(PrinterCUPS *p, int num_settings, GVariant *settings, char *jo
14441444
cupsCreateDestJob(p->http, p->dest, p->dinfo,
14451445
&job_id, title, num_options, options);
14461446
cupsStartDestDocument(p->http, p->dest, p->dinfo,
1447-
job_id, NULL, CUPS_FORMAT_AUTO,
1448-
0, NULL, 1);
1447+
job_id, title, CUPS_FORMAT_AUTO,
1448+
num_options, options, 1);
14491449

14501450
int socket_fd = socket(AF_UNIX, SOCK_STREAM, 0);
14511451
if (socket_fd == -1) {

0 commit comments

Comments
 (0)