--- /dev/null
+--- ghostpdl-1.54/pl/plmain.c.orig 2012-11-19 00:05:12.958343465 +0100
++++ ghostpdl-1.54/pl/plmain.c 2012-11-19 00:05:55.211675307 +0100
+@@ -266,7 +266,7 @@
+ /* Create PDL instances, etc */
+ if (pl_main_universe_init(&universe, err_buf, mem, pdl_implementation,
+ pjl_instance, &inst, &pl_pre_finish_page, &pl_post_finish_page) < 0) {
+- errprintf(err_buf);
++ errprintf("%s", err_buf);
+ return -1;
+ }
+
+@@ -384,7 +384,7 @@
+ pl_select_implementation(pjl_instance, &inst, r),
+ &inst, (gs_param_list *)¶ms);
+ if ( curr_instance == NULL ) {
+- dprintf(err_buf);
++ dputs(err_buf);
+ return -1;
+ }
+
+@@ -447,7 +447,7 @@
+
+ /* Dnit PDLs */
+ if (pl_main_universe_dnit(&universe, err_buf)) {
+- dprintf(err_buf);
++ dputs(err_buf);
+ return -1;
+ }
+ /* dnit pjl */
+--- ghostpdl-1.54/pxl/pxtop.c~ 2008-08-02 23:09:12.000000000 +0200
++++ ghostpdl-1.54/pxl/pxtop.c 2012-11-19 00:18:39.224981686 +0100
+@@ -515,7 +515,7 @@
+ code, st, pxs)) >= 0
+ )
+ { if ( (report & eBackChannel) || force_to_cout )
+- errprintf(message);
++ errprintf("%s", message);
+ if ( report & eErrorPage )
+ y = px_error_page_show(message, y, pxs);
+ }
Summary(pl.UTF-8): Interpreter i renderer PostScriptu, PDF oraz XPS
Name: ghostpcl
Version: 1.54
-Release: 7
+Release: 8
License: GPL v2
Group: Applications/Graphics
#Source0: http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/ghostpdl/ghostpdl-%{version}.tar.bz2
# Source1-md5: 6d65230fa5e9783a0b5942b55dc5219f
Patch0: %{name}-fonts_locations.patch
Patch1: %{name}-make.patch
+Patch2: %{name}-format-security.patch
URL: http://www.artifex.com/downloads/
#BuildRequires: XFree86-devel
BuildRequires: expat-devel
%setup -q -n ghostpdl-%{version} -a1
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__make} -j1 \