mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-01 09:20:28 -05:00
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]
This commit is contained in:
parent
520f716dec
commit
6a2c0436de
@ -14,10 +14,10 @@ printer_job *printer_start_job(char *printer)
|
|||||||
{
|
{
|
||||||
printer_job *ret = smalloc(sizeof(printer_job));
|
printer_job *ret = smalloc(sizeof(printer_job));
|
||||||
/*
|
/*
|
||||||
* On Unix, we treat cfg.printer as the name of a command to
|
* On Unix, we treat the printer string as the name of a
|
||||||
* pipe to - typically lpr, of course.
|
* command to pipe to - typically lpr, of course.
|
||||||
*/
|
*/
|
||||||
ret->fp = popen(cfg.printer, "w");
|
ret->fp = popen(printer, "w");
|
||||||
if (!ret->fp) {
|
if (!ret->fp) {
|
||||||
sfree(ret);
|
sfree(ret);
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user