Fix build with GCC 8: strncpy ->strcpy