cJSON
cJSON copied to clipboard
Fix Undefined Behavior by replacing illegal overlap test with memmove()
I pointed this out in #919, sorry for taking so long to make a PR. But here it is. No need to check for string overlap–it's simply not legal in C, and memmove() exists to guarantee that overlapping copies don't cause unforeseen problems.