TMXR: avoid calling strcpy with overlapping arguments