Fix #17: Use memmove, not memcpy.