printer_start_job shouldn't need to refer to cfg.printer, since it's
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Jan 2003 14:50:34 +0000 (14:50 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Jan 2003 14:50:34 +0000 (14:50 +0000)
getting the printer name passed in anyway! Oops.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2563 cda61777-01e9-0310-a592-d414129be87e

unix/uxprint.c

index 387ea28..c835b6f 100644 (file)
@@ -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;