From 786c47ace2ef6a2f9e5ac4f12255248295ad4c41 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 9 Mar 2007 14:53:05 +0000 Subject: - Fix runtime crash on amd64 on certain input files PR: ports/110039 Submitted by: Ingo Schroeck Obtained from: debian bug tracking system --- print/ghostscript-afpl/files/patch-src-gxfcopy.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 print/ghostscript-afpl/files/patch-src-gxfcopy.c (limited to 'print/ghostscript-afpl/files/patch-src-gxfcopy.c') diff --git a/print/ghostscript-afpl/files/patch-src-gxfcopy.c b/print/ghostscript-afpl/files/patch-src-gxfcopy.c new file mode 100644 index 000000000000..a33419126b19 --- /dev/null +++ b/print/ghostscript-afpl/files/patch-src-gxfcopy.c @@ -0,0 +1,11 @@ +--- src/gxfcopy.c.orig Thu Mar 23 13:39:23 2006 ++++ src/gxfcopy.c Fri Mar 9 15:13:31 2007 +@@ -2391,7 +2391,7 @@ + a[j++] = &cfdata->names[i]; + } + } +- qsort(a, cfdata->num_glyphs, sizeof(int), compare_glyph_names); ++ qsort(a, cfdata->num_glyphs, sizeof(gs_copied_glyph_name_t*), compare_glyph_names); + for (; j >= 0; j--) + cfdata->glyphs[j].order_index = a[j] - cfdata->names; + gs_free_object(memory, a, "order_font_data"); -- cgit v1.2.3