transfig (1:3.2.5.c-1) 19_cups_workaround.dpatch

Summary

 fig2dev/dev/genps.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
## 19_cups_workaround.dpatch by Roland Rosenfeld <roland@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Change PS magic string from PS-Adobe-2.0 to PS to work around
## DP: incompatibilities with CUPS (Closes: #443832).

@DPATCH@
diff -urNad transfig~/fig2dev/dev/genps.c transfig/fig2dev/dev/genps.c
--- transfig~/fig2dev/dev/genps.c
+++ transfig/fig2dev/dev/genps.c
@@ -597,7 +597,7 @@
 	if (epsflag)
 	    fprintf(tfp, "%%!PS-Adobe-2.0 EPSF-2.0\n");	/* Encapsulated PostScript */
 	else
-	    fprintf(tfp, "%%!PS-Adobe-2.0\n");		/* PostScript magic strings */
+	    fprintf(tfp, "%%!PS\n");		/* PostScript magic strings */
 
 	if (gethostname(host, sizeof(host)) == -1)
 	    (void)strcpy(host, "unknown-host!?!?");