diff options
Diffstat (limited to 'meta-oe/recipes-devtools/xmlrpc-c/xmlrpc-c/0002-fix-formatting-issues.patch')
-rw-r--r-- | meta-oe/recipes-devtools/xmlrpc-c/xmlrpc-c/0002-fix-formatting-issues.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/xmlrpc-c/xmlrpc-c/0002-fix-formatting-issues.patch b/meta-oe/recipes-devtools/xmlrpc-c/xmlrpc-c/0002-fix-formatting-issues.patch new file mode 100644 index 0000000000..9d92e4712b --- /dev/null +++ b/meta-oe/recipes-devtools/xmlrpc-c/xmlrpc-c/0002-fix-formatting-issues.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 14f15cb0f03defa8efb4c8e2fece58e50655be6b Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Sun, 23 Jul 2017 22:20:29 -0400 | ||
4 | Subject: [PATCH] src/xmlrpc_server_abyss.c: fix formatting issues | ||
5 | |||
6 | Fixed when compile with "-Wformat -Wformat-security -Werror=format-security": | ||
7 | |src/xmlrpc_server_abyss.c:771:13: error: format not a string literal | ||
8 | and no format arguments [-Werror=format-security] | ||
9 | | xmlrpc_faultf(envP, error); | ||
10 | | ^~~~~~~~~~~~~ | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
15 | --- | ||
16 | src/xmlrpc_server_abyss.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/src/xmlrpc_server_abyss.c b/src/xmlrpc_server_abyss.c | ||
20 | index 2388652..3843f10 100644 | ||
21 | --- a/src/xmlrpc_server_abyss.c | ||
22 | +++ b/src/xmlrpc_server_abyss.c | ||
23 | @@ -768,7 +768,7 @@ createServer(xmlrpc_env * const envP, | ||
24 | ServerInit2(abyssServerP, &error); | ||
25 | |||
26 | if (error) { | ||
27 | - xmlrpc_faultf(envP, error); | ||
28 | + xmlrpc_faultf(envP, "%s", error); | ||
29 | xmlrpc_strfree(error); | ||
30 | } | ||
31 | } | ||
32 | -- | ||
33 | 2.8.1 | ||
34 | |||