diff --git a/cJSON.c b/cJSON.c index 681a348..89de6f6 100644 --- a/cJSON.c +++ b/cJSON.c @@ -1007,7 +1007,7 @@ CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return } buffer.content = (const unsigned char*)value; - buffer.length = strlen((const char*)value) + sizeof(""); + buffer.length = strlen(value) + sizeof(""); buffer.offset = 0; buffer.hooks = global_hooks;