func_strings: use memmove to prevent overlapping memory on strcpy