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));
|
value = JsonValueArray(JsonDecodeArray(state));
|
||||||
break;
|
break;
|
||||||
case TOKEN_STRING:
|
case TOKEN_STRING:
|
||||||
strValue = Malloc(state->tokenLen);
|
strValue = Malloc(state->tokenLen + 1);
|
||||||
if (!strValue)
|
if (!strValue)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue