From 487a8b76a1036170a9faf2477032eaf288a18869 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sun, 30 Apr 2017 19:38:05 +0200 Subject: [PATCH] fix another compare_strings --- cJSON_Utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON_Utils.c b/cJSON_Utils.c index bc4734f..8760433 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -914,7 +914,7 @@ static void create_patches(cJSON * const patches, const unsigned char * const pa return; case cJSON_String: - if (compare_strings((unsigned char*)from->valuestring, (unsigned char*)to->valuestring, true) != 0) + if (strcmp((unsigned char*)from->valuestring, (unsigned char*)to->valuestring) != 0) { compose_patch(patches, (const unsigned char*)"replace", path, NULL, to); }