use more safety strncpy