diff options
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r-- | swaybar/ipc.c | 2 |
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) { | |||
550 | // The default depth of 32 is too small to represent some nested layouts, but | 550 | // The default depth of 32 is too small to represent some nested layouts, but |
551 | // we can't pass INT_MAX here because json-c (as of this writing) prefaults | 551 | // we can't pass INT_MAX here because json-c (as of this writing) prefaults |
552 | // all the memory for its stack. | 552 | // all the memory for its stack. |
553 | json_tokener *tok = json_tokener_new_ex(256); | 553 | json_tokener *tok = json_tokener_new_ex(JSON_MAX_DEPTH); |
554 | if (!tok) { | 554 | if (!tok) { |
555 | sway_log_errno(SWAY_ERROR, "failed to create tokener"); | 555 | sway_log_errno(SWAY_ERROR, "failed to create tokener"); |
556 | free_ipc_response(resp); | 556 | free_ipc_response(resp); |