diff options
Diffstat (limited to 'textproc/gladtex/files/patch-eqn2img.c')
-rw-r--r-- | textproc/gladtex/files/patch-eqn2img.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/textproc/gladtex/files/patch-eqn2img.c b/textproc/gladtex/files/patch-eqn2img.c new file mode 100644 index 000000000000..f49db0a4a36c --- /dev/null +++ b/textproc/gladtex/files/patch-eqn2img.c @@ -0,0 +1,21 @@ +$FreeBSD$ +--- eqn2img.c Tue Nov 5 18:10:13 2002 ++++ eqn2img.c.port Sat Feb 4 21:29:22 2006 +@@ -675,7 +675,7 @@ + fprintf(stderr, " -> ps"); + + cmd = NEW(char, 2*strlen(basename) + 35); +- sprintf(cmd, "dvips -E -o %s.ps %s.dvi &> /dev/null", basename, basename); ++ sprintf(cmd, "dvips -q -E -o %s.ps %s.dvi", basename, basename); + if(system(cmd)) { + fprintf(stderr, "\nError running dvips\n"); + return -1; +@@ -714,7 +714,7 @@ + basename, dpi*supersample, xsize, ysize, basename); + gs = popen(cmd, "w"); + fprintf(gs, "%i neg %i neg translate\n", xoffset, yoffset); +- fclose(gs); ++ pclose(gs); + sprintf(cmd, "%s.ps", basename); + unlink(cmd); + free(cmd); |