summaryrefslogtreecommitdiff
path: root/print/ghostscript-gpl/files/patch-alps__gdevalps.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/ghostscript-gpl/files/patch-alps__gdevalps.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>
Notes
Notes: svn path=/head/; revision=188581
Diffstat (limited to 'print/ghostscript-gpl/files/patch-alps__gdevalps.c')
-rw-r--r--print/ghostscript-gpl/files/patch-alps__gdevalps.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/print/ghostscript-gpl/files/patch-alps__gdevalps.c b/print/ghostscript-gpl/files/patch-alps__gdevalps.c
new file mode 100644
index 000000000000..ad77a9e9af10
--- /dev/null
+++ b/print/ghostscript-gpl/files/patch-alps__gdevalps.c
@@ -0,0 +1,22 @@
+--- alps/gdevalps.c.orig Wed Nov 24 09:28:35 1999
++++ alps/gdevalps.c Fri Dec 17 19:12:35 2004
+@@ -173,7 +173,7 @@
+ {
+ int lnum;
+ int line_size = gdev_mem_bytes_per_scan_line((gx_device *)pdev);
+- byte *data = (byte *)gs_malloc(8, line_size, "md50_print_page(data)" );
++ byte *data = (byte *)gs_malloc(pdev->memory, 8, line_size, "md50_print_page(data)" );
+ int skipping = 0;
+ int nbyte;
+ int nskip;
+@@ -232,8 +232,8 @@
+ {
+ int lnum;
+ int line_size = gdev_mem_bytes_per_scan_line((gx_device *)pdev);
+- byte *data = (byte *)gs_malloc(8, line_size, "md1xm_print_page(data)");
+- byte *out_start = (byte *)gs_malloc(8, line_size, "md1xm_print_page(data)");
++ byte *data = (byte *)gs_malloc(pdev->memory, 8, line_size, "md1xm_print_page(data)");
++ byte *out_start = (byte *)gs_malloc(pdev->memory, 8, line_size, "md1xm_print_page(data)");
+ int skipping = 0;
+ int nbyte;
+