aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/xmlrpc-c/xmlrpc-c/0002-fix-formatting-issues.patch
blob: 9d92e4712b1094cc728d76c6d3179f8d28cef46e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 14f15cb0f03defa8efb4c8e2fece58e50655be6b Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Sun, 23 Jul 2017 22:20:29 -0400
Subject: [PATCH] src/xmlrpc_server_abyss.c: fix formatting issues

Fixed when compile with "-Wformat -Wformat-security -Werror=format-security":
|src/xmlrpc_server_abyss.c:771:13: error: format not a string literal
and no format arguments [-Werror=format-security]
|             xmlrpc_faultf(envP, error);
|             ^~~~~~~~~~~~~

Upstream-Status: Pending

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 src/xmlrpc_server_abyss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xmlrpc_server_abyss.c b/src/xmlrpc_server_abyss.c
index 2388652..3843f10 100644
--- a/src/xmlrpc_server_abyss.c
+++ b/src/xmlrpc_server_abyss.c
@@ -768,7 +768,7 @@ createServer(xmlrpc_env *                      const envP,
         ServerInit2(abyssServerP, &error);
 
         if (error) {
-            xmlrpc_faultf(envP, error);
+            xmlrpc_faultf(envP, "%s", error);
             xmlrpc_strfree(error);
         }
     }
-- 
2.8.1