replace Vector* with Vec*, replace strncpy with strcpy_s