diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-02-16 01:12:05 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-02-16 01:13:43 +0100 |
commit | 55072a2e6eb94c4300dfb3bc56fb190013b13d8c (patch) | |
tree | ce40759257c33ea2310cd640758383afe40b69b3 /media-libs/plotutils | |
parent | net-print/cups: Tone down USB_PRINTER warning, bug 501122 (diff) | |
download | gentoo-55072a2e6eb94c4300dfb3bc56fb190013b13d8c.tar.gz gentoo-55072a2e6eb94c4300dfb3bc56fb190013b13d8c.tar.bz2 gentoo-55072a2e6eb94c4300dfb3bc56fb190013b13d8c.zip |
media-libs/plotutils: Add debian/redhat patch for format-security, bug 556568
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'media-libs/plotutils')
-rw-r--r-- | media-libs/plotutils/files/plotutils-2.6-format-security.patch | 18 | ||||
-rw-r--r-- | media-libs/plotutils/plotutils-2.6-r1.ebuild | 3 |
2 files changed, 20 insertions, 1 deletions
diff --git a/media-libs/plotutils/files/plotutils-2.6-format-security.patch b/media-libs/plotutils/files/plotutils-2.6-format-security.patch new file mode 100644 index 000000000000..c1cbecfc796b --- /dev/null +++ b/media-libs/plotutils/files/plotutils-2.6-format-security.patch @@ -0,0 +1,18 @@ +Description: Fix build error with -Werror=format-security. +Forwarded: https://lists.gnu.org/archive/html/bug-plotutils/2016-01/msg00000.html +Author: Stanislav Ochotnicky <sochotnicky@redhat.com> +Origin: http://pkgs.fedoraproject.org/cgit/plotutils.git + +diff --git a/pic2plot/gram.yy b/pic2plot/gram.yy +index d11320b..1bcce46 100644 +--- a/pic2plot/gram.yy ++++ b/pic2plot/gram.yy +@@ -1833,7 +1833,7 @@ do_sprintf(const char *form, const double *v, int nv) + { + one_format += *form++; + one_format += '\0'; +- sprintf(sprintf_buf, one_format.contents()); ++ sprintf(sprintf_buf, "%s", one_format.contents()); + } + else + { diff --git a/media-libs/plotutils/plotutils-2.6-r1.ebuild b/media-libs/plotutils/plotutils-2.6-r1.ebuild index 13eeaf32b8d0..3153d134c0a0 100644 --- a/media-libs/plotutils/plotutils-2.6-r1.ebuild +++ b/media-libs/plotutils/plotutils-2.6-r1.ebuild @@ -35,7 +35,8 @@ src_prepare() { "${FILESDIR}"/${PN}-2.5.1-rangecheck.patch \ "${FILESDIR}"/${P}-makefile.patch \ "${FILESDIR}"/${P}-libpng-1.5.patch \ - "${FILESDIR}"/${P}-libxmi.patch + "${FILESDIR}"/${P}-libxmi.patch \ + "${FILESDIR}"/${P}-format-security.patch eautoreconf elibtoolize } |