mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
Don't add null terminator to each token.
This commit is contained in:
@ -23,5 +23,8 @@ char* JsonObjectBase::getTokenString(jsmntok_t* token)
|
||||
if (token->type != JSMN_PRIMITIVE && token->type != JSMN_STRING)
|
||||
return 0;
|
||||
|
||||
// add null terminator to the string
|
||||
json[token->end] = 0;
|
||||
|
||||
return json + token->start;
|
||||
}
|
Reference in New Issue
Block a user