From: simon Date: Sun, 12 Jan 2003 14:50:34 +0000 (+0000) Subject: printer_start_job shouldn't need to refer to cfg.printer, since it's X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/169c04c90148d37b31ce77208123319ce6f21d1e printer_start_job shouldn't need to refer to cfg.printer, since it's getting the printer name passed in anyway! Oops. git-svn-id: svn://svn.tartarus.org/sgt/putty@2563 cda61777-01e9-0310-a592-d414129be87e --- 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;