plotutils/plotutils-werror-format-security.patch
Troy Dawson 71b20c18f3 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/plotutils#0592a1240a47bffc05464561d60ad3d24c6deb6d
2020-10-14 16:11:05 -07:00

14 lines
406 B
Diff

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
{