Fix wrong structure used to determine the size of a memcpy in