]> git.pld-linux.org Git - packages/ghostpcl.git/blame - ghostpcl-format-security.patch
- fix building with -Wformat-security
[packages/ghostpcl.git] / ghostpcl-format-security.patch
CommitLineData
5629b0ed
JR
1--- ghostpdl-1.54/pl/plmain.c.orig 2012-11-19 00:05:12.958343465 +0100
2+++ ghostpdl-1.54/pl/plmain.c 2012-11-19 00:05:55.211675307 +0100
3@@ -266,7 +266,7 @@
4 /* Create PDL instances, etc */
5 if (pl_main_universe_init(&universe, err_buf, mem, pdl_implementation,
6 pjl_instance, &inst, &pl_pre_finish_page, &pl_post_finish_page) < 0) {
7- errprintf(err_buf);
8+ errprintf("%s", err_buf);
9 return -1;
10 }
11
12@@ -384,7 +384,7 @@
13 pl_select_implementation(pjl_instance, &inst, r),
14 &inst, (gs_param_list *)&params);
15 if ( curr_instance == NULL ) {
16- dprintf(err_buf);
17+ dputs(err_buf);
18 return -1;
19 }
20
21@@ -447,7 +447,7 @@
22
23 /* Dnit PDLs */
24 if (pl_main_universe_dnit(&universe, err_buf)) {
25- dprintf(err_buf);
26+ dputs(err_buf);
27 return -1;
28 }
29 /* dnit pjl */
30--- ghostpdl-1.54/pxl/pxtop.c~ 2008-08-02 23:09:12.000000000 +0200
31+++ ghostpdl-1.54/pxl/pxtop.c 2012-11-19 00:18:39.224981686 +0100
32@@ -515,7 +515,7 @@
33 code, st, pxs)) >= 0
34 )
35 { if ( (report & eBackChannel) || force_to_cout )
36- errprintf(message);
37+ errprintf("%s", message);
38 if ( report & eErrorPage )
39 y = px_error_page_show(message, y, pxs);
40 }
This page took 0.057336 seconds and 4 git commands to generate.