#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
master
OpenGnSys Support Team 2019-08-28 15:58:17 +02:00
parent ba2e868019
commit 7e6ba45f95
1 changed files with 2 additions and 2 deletions

View File

@ -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;