aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiels Widger <niels@qacafe.com>2024-02-26 13:51:53 -0500
committerAndersBroman <a.broman58@gmail.com>2024-02-27 08:42:53 +0000
commit8989c732fc0b78039c72b695e7c7099948ea5491 (patch)
tree9ca87de9965b53d0bdd3ab303b9750b34374c243
parentd22842f662b1442cf324065e0fe954619358ce89 (diff)
sharkd: Increase JSON buffer size from 2048 to 8192 bytes
This commit increases the maximum size for the JSON commands processed by `sharkd` from 2048 to 8192 bytes. The primary reason for this change is to allow larger filters in `filter0`...`filter9` arguments which, combined with the outer JSON boilerplate, can cause a command to quickly hit the existing 2048-byte limit.
-rw-r--r--sharkd_session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sharkd_session.c b/sharkd_session.c
index b91c071044..eedeac0cb7 100644
--- a/sharkd_session.c
+++ b/sharkd_session.c
@@ -5837,7 +5837,7 @@ sharkd_session_process(char *buf, const jsmntok_t *tokens, int count)
int
sharkd_session_main(int mode_setting)
{
- char buf[2 * 1024];
+ char buf[8 * 1024];
jsmntok_t *tokens = NULL;
int tokens_max = -1;