diff options
Diffstat (limited to 'gnu/packages/patches/plotutils-format-security.patch')
| -rw-r--r-- | gnu/packages/patches/plotutils-format-security.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/patches/plotutils-format-security.patch b/gnu/packages/patches/plotutils-format-security.patch new file mode 100644 index 00000000000..c1cbecfc796 --- /dev/null +++ b/gnu/packages/patches/plotutils-format-security.patch | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | Description: Fix build error with -Werror=format-security. | ||
| 2 | Forwarded: https://lists.gnu.org/archive/html/bug-plotutils/2016-01/msg00000.html | ||
| 3 | Author: Stanislav Ochotnicky <sochotnicky@redhat.com> | ||
| 4 | Origin: http://pkgs.fedoraproject.org/cgit/plotutils.git | ||
| 5 | |||
| 6 | diff --git a/pic2plot/gram.yy b/pic2plot/gram.yy | ||
| 7 | index d11320b..1bcce46 100644 | ||
| 8 | --- a/pic2plot/gram.yy | ||
| 9 | +++ b/pic2plot/gram.yy | ||
| 10 | @@ -1833,7 +1833,7 @@ do_sprintf(const char *form, const double *v, int nv) | ||
| 11 | { | ||
| 12 | one_format += *form++; | ||
| 13 | one_format += '\0'; | ||
| 14 | - sprintf(sprintf_buf, one_format.contents()); | ||
| 15 | + sprintf(sprintf_buf, "%s", one_format.contents()); | ||
| 16 | } | ||
| 17 | else | ||
| 18 | { | ||
