forked from Telodendria/Telodendria
Fix some invalid write errors.
This commit is contained in:
parent
80ff232af9
commit
9358264add
1 changed files with 1 additions and 1 deletions
|
@ -905,7 +905,7 @@ JsonDecodeValue(JsonParserState * state)
|
|||
value = JsonValueArray(JsonDecodeArray(state));
|
||||
break;
|
||||
case TOKEN_STRING:
|
||||
strValue = Malloc(state->tokenLen);
|
||||
strValue = Malloc(state->tokenLen + 1);
|
||||
if (!strValue)
|
||||
{
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue