memmove instead of memcpy
Merge pull request #548 from ZappoMan/master

memmove instead of memcpy for known overlapping copies