HomeFreeBSD

- uri is expected to be nul-terminated (strchr used later),

Description

  • uri is expected to be nul-terminated (strchr used later), so use strlcpy instead of strncpy.
  • unroll the other two cases of strncpy+\0 to strlcpy.

MFC after: 2 weeks

Details

Provenance
delphijAuthored on
Parents
rS287319: Constify opt_f and opt_t and eliminate unneeded copying. This fixes
Branches
Unknown
Tags
Unknown