mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 08:14:32 +04:00
When building abyss feature, the following error occurs: xmlrpc_server_abyss.c:783:13: warning: format not a string literal and no format arguments [-Wformat-security] 783 | xmlrpc_faultf(envP, error); Add a patch fixing the format parameter. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
12 lines
320 B
Diff
12 lines
320 B
Diff
--- a/src/xmlrpc_server_abyss.c
|
|
+++ b/src/xmlrpc_server_abyss.c
|
|
@@ -780,7 +780,7 @@ createServer(xmlrpc_env *
|
|
ServerInit2(abyssServerP, &error);
|
|
|
|
if (error) {
|
|
- xmlrpc_faultf(envP, error);
|
|
+ xmlrpc_faultf(envP, "%s", error);
|
|
xmlrpc_strfree(error);
|
|
}
|
|
}
|