Use struct copy instead of memcpy().