Replace memcpy() with std::copy_n() to improve type safety by eliminating manual sizeof() calculations. This is the single change for the EasyHack as requested in the review. Change-Id: Ib2d0f84186a126d6cc1a8a1fa296e418853d13ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204347 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>