remove overlapping strcpy(), fixes #735