I was unable to compile source code on OSX if the sources was at the same level as the Makefile.
After some debugging it turned out that the strcpy was called with two identical arguments which generated an error. The attached patch fixes this issue.
Thanks for spotting the bug and for the proposed fix.
I think it could still happen that the destination and source strings overlap, even when the arguments are not identical, so in [r10452], I choose an alternative solution, that also deals with that case.
Could you test that it fixes your issue?
Philipp
Hello Philipp,
I agree that you approach is better than mine.
I have tested it on OSX and works fine.
Thank you for your time and efforts!