From 7e6ba45f953474033618db5172c7ea5b63dc7b9c Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 28 Aug 2019 15:58:17 +0200 Subject: #915 json_dump_callback() takes flags as a parameter Not as the buffer size, this leads to incorrectly printing the json output since this might set on the JSON_EMBED flag on libjansson >= 2.10 --- sources/ogAdmServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources') diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index b65591d..c7e6cac 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -3481,7 +3481,7 @@ static int og_cmd_get_clients(json_t *element, struct og_msg_params *params, return -1; } - json_dump_callback(root, og_json_dump_clients, &og_buffer, 4096); + json_dump_callback(root, og_json_dump_clients, &og_buffer, 0); json_decref(root); return 0; @@ -3723,7 +3723,7 @@ static int og_cmd_run_get(json_t *element, struct og_msg_params *params, if (!root) return -1; - json_dump_callback(root, og_json_dump_clients, &og_buffer, 4096); + json_dump_callback(root, og_json_dump_clients, &og_buffer, 0); json_decref(root); return 0; -- cgit v1.2.3-18-g5258