]> git.pld-linux.org Git - packages/ghostpdl.git/commitdiff
- fix building with -Wformat-security
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 18 Nov 2012 23:24:38 +0000 (00:24 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 18 Nov 2012 23:24:38 +0000 (00:24 +0100)
- rel 8

ghostpcl-format-security.patch [new file with mode: 0644]
ghostpcl.spec

diff --git a/ghostpcl-format-security.patch b/ghostpcl-format-security.patch
new file mode 100644 (file)
index 0000000..fc33b80
--- /dev/null
@@ -0,0 +1,40 @@
+--- 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 *)&params);
+               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);
+         }
index 1c955d0e7224ded227d36b0b0a4fc873265233cb..52da382fd2781329f476197414821064f7f54580 100644 (file)
@@ -12,7 +12,7 @@ Summary:      PostScript, PDF and XPS interpreter and renderer
 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
@@ -24,6 +24,7 @@ Source1:      http://www.ctan.org/get/nonfree/support/ghostscript/AFPL/GhostPCL/urwfo
 # 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
@@ -61,6 +62,7 @@ Fonty URW w formacie TTF dla GhostPCL-a.
 %setup -q -n ghostpdl-%{version} -a1
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__make} -j1 \
This page took 0.158812 seconds and 4 git commands to generate.