[code-saturne] 03/09: format-not-a-string-literal-and-no-format-arguments.patch
Gilles Filippini
pini at debian.org
Sat Dec 16 12:22:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
pini pushed a commit to branch master
in repository code-saturne.
commit 0291ee8c8e0d04e3e8565a2fd84b88c73b20bc71
Author: Gilles Filippini <pini at debian.org>
Date: Mon Dec 11 23:38:38 2017 +0100
format-not-a-string-literal-and-no-format-arguments.patch
---
...ormat-not-a-string-literal-and-no-format-arguments.patch | 13 +++++++++++++
debian/patches/series | 1 +
2 files changed, 14 insertions(+)
diff --git a/debian/patches/format-not-a-string-literal-and-no-format-arguments.patch b/debian/patches/format-not-a-string-literal-and-no-format-arguments.patch
new file mode 100644
index 0000000..7801fe6
--- /dev/null
+++ b/debian/patches/format-not-a-string-literal-and-no-format-arguments.patch
@@ -0,0 +1,13 @@
+Index: code-saturne-5.1.0+repack/src/base/cs_tree.c
+===================================================================
+--- code-saturne-5.1.0+repack.orig/src/base/cs_tree.c
++++ code-saturne-5.1.0+repack/src/base/cs_tree.c
+@@ -290,7 +290,7 @@ cs_tree_node_set_string_val(cs_tree_node
+
+ node->size = 1;
+ BFT_MALLOC(node->value, strlen(val) + 1, char);
+- sprintf((char *)node->value, val);
++ sprintf((char *)node->value, "%s", val);
+ }
+
+ /*----------------------------------------------------------------------------*/
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..0407599 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+format-not-a-string-literal-and-no-format-arguments.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/code-saturne.git
More information about the debian-science-commits
mailing list