diff --git a/src/Json.c b/src/Json.c index 0f18b39..8f08347 100644 --- a/src/Json.c +++ b/src/Json.c @@ -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;