summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-08-28 15:58:17 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-08-28 17:15:14 +0200
commita36ed2078ac3891af18ff575b57d4e8175596e74 (patch)
tree8f08205e9e01f0459f65f0c281ec74cd2faf091e
parent5e8588bb59145bba465409491ad41da71953fa5a (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
-rw-r--r--admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
index b65591d6..c7e6cac3 100644
--- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
+++ b/admin/Sources/Services/ogAdmServer/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;