fix code not compiling with GCC 15

improve cx_strreplacen() - resolves #623

fix theoretical (but not actual) use-after-free

(0) -1000 -300 -100 -30 -10 -3 +3 tip

mercurial