Explorar o código

cJSON.c: Remove unused cast

Max Bruckner %!s(int64=7) %!d(string=hai) anos
pai
achega
1f4044a707
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cJSON.c

+ 1 - 1
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;