--- /dev/null
+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
+ {
"${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
}