Fix sizeof on memcpy