Closed vwvw closed 1 month ago
LGTM It will be appreciated if you can also add some tests.
Added a test, let me know how it looks.
Valgrind reports. Looks you forgot about the memory free in tests.
Pushed the necessary fix to make valgrind happy again!
Add a check to be sure that the string don't overlap to avoid issues with
strcpy
. Fixes #881All the credit goes to @tregua87