Преглед изворни кода

cJSON.c: Remove unused cast

Max Bruckner пре 7 година
родитељ
комит
1f4044a707
1 измењених фајлова са 1 додато и 1 уклоњено
  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.content = (const unsigned char*)value;
-    buffer.length = strlen((const char*)value) + sizeof("");
+    buffer.length = strlen(value) + sizeof("");
     buffer.offset = 0;
     buffer.offset = 0;
     buffer.hooks = global_hooks;
     buffer.hooks = global_hooks;