From 845a50980e8a88b1619c6b0b7dce27e13e0e0d7c Mon Sep 17 00:00:00 2001 From: Chris Lawrence Date: Fri, 6 Mar 2009 15:09:42 -0600 Subject: Imported Debian patch 4.0-20090301-2 --- debian/changelog | 8 ++++++++ renderer.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 850647f..ccbbfd4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +foomatic-filters (4.0-20090301-2) unstable; urgency=low + + * Fix bug in foomatic-rip that could leave two 'gs' calls in the command + line if gs was not at the beginning; common in Foomatic 3.x-generated + PPD files for PostScript printers. (Closes: #518362) + + -- Chris Lawrence Fri, 06 Mar 2009 15:09:42 -0600 + foomatic-filters (4.0-20090301-1) unstable; urgency=low * New upstream release. diff --git a/renderer.c b/renderer.c index 57f7281..f003206 100644 --- a/renderer.c +++ b/renderer.c @@ -86,7 +86,7 @@ void massage_gs_commandline(dstr_t *cmd) or ''"'"'xy' or 'xy'"'"'' or ... */ /* dstrreplace(cmd, "'", "'\"'\"'"); TODO tbd */ - dstrremove(gscmd, start, 2); /* Remove 'gs' */ + dstrremove(gscmd, 0, 2); /* Remove 'gs' */ if (gswithoutputredirection) { dstrprepend(gscmd, " -sstdout=%stderr "); -- cgit v1.2.3