Use memcpy instead of mempcpy

Non-GNU platforms don't support mempcpy. As the return value isn't being used
here, memcpy can safely be used instead.