From 30906a01c0b5db2cea69a81004910698b116ed6d Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sun, 30 Apr 2017 19:48:46 +0200 Subject: [PATCH] another compare_strings fix --- cJSON_Utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON_Utils.c b/cJSON_Utils.c index 793aa54..7b79256 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -1218,7 +1218,7 @@ CJSON_PUBLIC(cJSON *) cJSONUtils_GenerateMergePatch(cJSON * const from, cJSON * { if (to_child != NULL) { - diff = compare_strings((unsigned char*)from_child->string, (unsigned char*)to_child->string, true); + diff = strcmp(from_child->string, to_child->string); } else {