You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
plotutils/SOURCES/plotutils-werror-format-sec...

14 lines
406 B

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
{