diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-08-28 15:58:17 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-08-28 17:15:14 +0200 |
commit | 7e6ba45f953474033618db5172c7ea5b63dc7b9c (patch) | |
tree | 3498841ed25b503d8fb02f61c476ea6f5bf9f6cb /sources | |
parent | ba2e868019bff2caa472bc7c02fcc6ed4bf9168d (diff) |
#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
Diffstat (limited to 'sources')
-rw-r--r-- | sources/ogAdmServer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |