Sorry, that comment was referring to your original method where you are first mallocing one string, then mallocing another chunk of memory for the longer string, and freeing the first string - I didn't realize the code had been changed in that respect.
--
Mats

