Changes memcpy call to memmove