From 6a2c0436def3e25d74854ce17606506ccb5a0521 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 12 Jan 2003 14:50:34 +0000 Subject: [PATCH] printer_start_job shouldn't need to refer to cfg.printer, since it's getting the printer name passed in anyway! Oops. [originally from svn r2563] --- unix/uxprint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unix/uxprint.c b/unix/uxprint.c index 387ea28d..c835b6f4 100644 --- a/unix/uxprint.c +++ b/unix/uxprint.c @@ -14,10 +14,10 @@ printer_job *printer_start_job(char *printer) { printer_job *ret = smalloc(sizeof(printer_job)); /* - * On Unix, we treat cfg.printer as the name of a command to - * pipe to - typically lpr, of course. + * On Unix, we treat the printer string as the name of a + * command to pipe to - typically lpr, of course. */ - ret->fp = popen(cfg.printer, "w"); + ret->fp = popen(printer, "w"); if (!ret->fp) { sfree(ret); ret = NULL; -- 2.45.2