json: Fix buffer overflow in cJSON.c