aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorJason Nader <jason.nader@protonmail.com>2021-10-25 13:28:32 +0900
committerSimon Ser <contact@emersion.fr>2021-10-25 10:18:40 +0200
commit9303bed4d4523d158b33c44f534a53b21d7688d6 (patch)
tree55965bc247a85cac9c240a1e5715a7a9f6c38ddb /swaybar
parentb223f702500d7cda6336e948062d680f07f34f66 (diff)
refactor: use JSON_MAX_DEPTH everywhere
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c
index a64aa1ab..2cb235bf 100644
--- a/swaybar/ipc.c
+++ b/swaybar/ipc.c
@@ -550,7 +550,7 @@ bool handle_ipc_readable(struct swaybar *bar) {
// The default depth of 32 is too small to represent some nested layouts, but
// we can't pass INT_MAX here because json-c (as of this writing) prefaults
// all the memory for its stack.
- json_tokener *tok = json_tokener_new_ex(256);
+ json_tokener *tok = json_tokener_new_ex(JSON_MAX_DEPTH);
if (!tok) {
sway_log_errno(SWAY_ERROR, "failed to create tokener");
free_ipc_response(resp);