summaryrefslogtreecommitdiff
path: root/print/ghostscript8/files/patch-md2k:gdevmd2k.c
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-03-27 19:59:21 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-03-27 19:59:21 +0000
commit20352fa29823ad73e4f06d086dc9598d1a274ab8 (patch)
tree8dca0c9c79381ab1af57f988e6007e2e7b2e40fa /print/ghostscript8/files/patch-md2k:gdevmd2k.c
parentClean up CXXFLAGS. Fix compilation with gcc-4.1.x. (diff)
- Update to 8.56
- Switch to GTK 2.x - SWitch to ship-in jasper which contains some fixes for gs PR: ports/110818 Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Diffstat (limited to '')
-rw-r--r--print/ghostscript8/files/patch-md2k:gdevmd2k.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/print/ghostscript8/files/patch-md2k:gdevmd2k.c b/print/ghostscript8/files/patch-md2k:gdevmd2k.c
index 4b1049db015c..1aeeb74be38f 100644
--- a/print/ghostscript8/files/patch-md2k:gdevmd2k.c
+++ b/print/ghostscript8/files/patch-md2k:gdevmd2k.c
@@ -1,5 +1,23 @@
--- md2k/gdevmd2k.c.orig Sun May 2 14:07:57 1999
-+++ md2k/gdevmd2k.c Fri Nov 8 07:29:13 2002
++++ md2k/gdevmd2k.c Fri Dec 17 19:10:22 2004
+@@ -495,7 +495,7 @@
+ int i, j;
+
+ /* allocate memory */
+- work = (byte *)gs_malloc(3+sizeof(int), line_size,
++ work = (byte *)gs_malloc(pdev->memory, 3+sizeof(int), line_size,
+ "alps_print_page(work)");
+ if (work == 0)
+ return_error(gs_error_VMerror);
+@@ -597,7 +597,7 @@
+ "\033\052\162\103"
+ "\033\045\0\130", 1, 9, prn_stream);
+
+- gs_free((char *)work, 3+sizeof(int), line_size, "alps_print_page(work)");
++ gs_free(pdev->memory, (char *)work, 3+sizeof(int), line_size, "alps_print_page(work)");
+ return 0;
+ }
+
@@ -638,11 +638,13 @@
(k) = gx_bits_to_color_value((v) & ((1 << (b)) - 1), (b))