Open escherstair opened 5 months ago
Like all the other cJSON_Print functions, I think that cJSON *item parameter can be const-qualified in cJSON_PrintPreallocated too https://github.com/DaveGamble/cJSON/blob/87d8f0961a01bf09bef98ff89bae9fdec42181ee/cJSON.c#L1297C50-L1297C61 should be changed to
cJSON_Print
cJSON *item
cJSON_PrintPreallocated
CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(const cJSON *item, char *buffer, const int length, const cJSON_bool format)
I opened PR #823
Like all the other
cJSON_Print
functions, I think thatcJSON *item
parameter can be const-qualified incJSON_PrintPreallocated
too https://github.com/DaveGamble/cJSON/blob/87d8f0961a01bf09bef98ff89bae9fdec42181ee/cJSON.c#L1297C50-L1297C61 should be changed toI opened PR #823