summaryrefslogtreecommitdiff
path: root/Build/source/utils/ps2eps/ps2eps-1.68-PATCHES/patch-02-WIN32-bug
blob: febf91d94ac966f2f4dd87833cc9091a2d3bd97a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur ps2eps-1.68.orig/src/C/bbox.c ps2eps-1.68/src/C/bbox.c
--- ps2eps-1.68.orig/src/C/bbox.c	2010-12-15 13:39:27.000000000 +0100
+++ ps2eps-1.68/src/C/bbox.c	2010-12-15 13:46:23.000000000 +0100
@@ -210,7 +210,7 @@
 #if defined(_WIN32) && !defined(__CYGWIN__)  /* this is really braindead stuff for MSVC */
 	  i= _setmode( _fileno(stdin), _O_BINARY);
 	  if (i == -1)
-	    fprintf(stderr,"%s: ERROR - Cannot set binary mode for STDIN\n");
+	    fprintf(stderr,"%s: ERROR - Cannot set binary mode for STDIN\n", prgname);
 #endif
           for (y= 0; y<height; y++) /* for every image row 0..height-1 */
           {