From: Jan Rękorajski Date: Wed, 1 Apr 2015 20:19:18 +0000 (+0200) Subject: - fix format string errors X-Git-Tag: auto/th/a2ps-4.14-3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fa2ps.git;a=commitdiff_plain;h=9402a7cb2d0fc13b937dca443c203a70bb46298a - fix format string errors - fix building with texinfo 5 - rel 3 --- diff --git a/a2ps-info.patch b/a2ps-info.patch index 81f5581..ce03d63 100644 --- a/a2ps-info.patch +++ b/a2ps-info.patch @@ -1,6 +1,21 @@ diff -Nru a2ps-4.12h/doc/a2ps.texi a2ps-4.12h.new/doc/a2ps.texi --- a2ps-4.12h/doc/a2ps.texi Sat Dec 18 11:13:33 1999 +++ a2ps-4.12h.new/doc/a2ps.texi Sat Dec 18 11:12:41 1999 +@@ -22,12 +22,12 @@ + @c `a2ps'. Avoid those quotes. + @iftex + @macro pack +-@code{@value{PACKAGE}}@c ++@code{@value{PACKAGE}} + @end macro + @end iftex + @ifnottex + @macro pack +-@value{PACKAGE}@c ++@value{PACKAGE} + @end macro + @end ifnottex + @@ -59,16 +59,16 @@ @TeX{}Script @end macro diff --git a/a2ps.spec b/a2ps.spec index 7e3333e..c2565b5 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -4,7 +4,7 @@ Summary(pl.UTF-8): Filtr text/plain do Postscriptu Summary(zh_CN.UTF-8): 纯文本到Postscript转换器 Name: a2ps Version: 4.14 -Release: 2 +Release: 3 License: GPL v3+ Group: Applications/Text Source0: http://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz @@ -24,6 +24,7 @@ Patch8: %{name}-ogonkify-xfig-fix.patch Patch9: %{name}-pl.po-update.patch Patch10: %{name}-locale-names.patch Patch11: %{name}-atan2.patch +Patch12: format-security.patch URL: http://www.gnu.org/software/a2ps/ BuildRequires: automake BuildRequires: flex @@ -93,6 +94,7 @@ Biblioteka statyczna a2ps. %patch9 -p1 %patch10 -p1 %patch11 -p1 +%patch12 -p1 mv -f po/{no,nb}.po diff --git a/format-security.patch b/format-security.patch new file mode 100644 index 0000000..3f8b4a6 --- /dev/null +++ b/format-security.patch @@ -0,0 +1,44 @@ +--- a2ps-4.14/lib/output.c~ 2015-04-01 22:07:29.000000000 +0200 ++++ a2ps-4.14/lib/output.c 2015-04-01 22:08:53.825344087 +0200 +@@ -525,7 +525,7 @@ + expand_user_string (job, FIRST_FILE (job), + (const uchar *) "Expand: requirement", + (const uchar *) token)); +- output (dest, expansion); ++ output (dest, "%s", expansion); + continue; + } + +--- a2ps-4.14/lib/psgen.c~ 2007-12-29 02:58:22.000000000 +0100 ++++ a2ps-4.14/lib/psgen.c 2015-04-01 22:09:36.668677711 +0200 +@@ -232,7 +232,7 @@ + default: + *buf = '\0'; + ps_escape_char (job, cp[i], buf); +- output (jdiv, (char *) buf); ++ output (jdiv, "%s", (char *) buf); + break; + } + } +--- a2ps-4.14/lib/parseppd.y~ 2007-12-29 02:58:21.000000000 +0100 ++++ a2ps-4.14/lib/parseppd.y 2015-04-01 22:12:11.502012094 +0200 +@@ -154,7 +154,7 @@ + void + yyerror (const char *msg) + { +- error_at_line (1, 0, ppdfilename, ppdlineno, msg); ++ error_at_line (1, 0, ppdfilename, ppdlineno, "%s", msg); + } + + /* +--- a2ps-4.14/src/parsessh.y~ 2007-12-29 02:58:35.000000000 +0100 ++++ a2ps-4.14/src/parsessh.y 2015-04-01 22:12:50.782012360 +0200 +@@ -740,7 +740,7 @@ + void + yyerror (const char *msg) + { +- error_at_line (1, 0, sshfilename, sshlineno, msg); ++ error_at_line (1, 0, sshfilename, sshlineno, "%s", msg); + } + + /*