mirror of https://git.48k.eu/ogserver
#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.10master
parent
ba2e868019
commit
7e6ba45f95
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue