3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-03 02:02:33 +01:00

json: increase default token size to 60

This commit is contained in:
James Prestwood 2022-01-06 11:50:03 -08:00 committed by Denis Kenzior
parent e321c48211
commit ebed84ab55

View File

@ -33,7 +33,7 @@
#include "shared/jsmn.h" #include "shared/jsmn.h"
/* Max number of tokens supported. Increase if larger objects are expected */ /* Max number of tokens supported. Increase if larger objects are expected */
#define JSON_DEFAULT_TOKENS 30 #define JSON_DEFAULT_TOKENS 60
#define TOK_LEN(token) (token)->end - (token)->start #define TOK_LEN(token) (token)->end - (token)->start
#define TOK_PTR(json, token) (void *)((json) + (token)->start) #define TOK_PTR(json, token) (void *)((json) + (token)->start)