X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/356a170694d9182f1a350933a76e75bc75f8056d..8dacc30e3a1bd57526c21b701383f69ef93a6703:/unix/uxprint.c diff --git a/unix/uxprint.c b/unix/uxprint.c index 387ea28d..77bcb7f1 100644 --- a/unix/uxprint.c +++ b/unix/uxprint.c @@ -12,12 +12,12 @@ struct printer_job_tag { printer_job *printer_start_job(char *printer) { - printer_job *ret = smalloc(sizeof(printer_job)); + printer_job *ret = snew(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;