use memmove not strcpy when src and test overlap, from ioquake3