Use correct dest for memcpy