HomeFreeBSD

Use strlcpy() instead of strncpy() when copying to dom_domain to

Description

Use strlcpy() instead of strncpy() when copying to dom_domain to
ensure that the latter is NUL terminated since it is passed
as an argument to *printf().

Warn about NIS domains that are too long.

Reported by: Coverity
CID: 1009620, 1009621
MFH: 1 week

Details

Provenance
truckmanAuthored on
Parents
rS299572: libc: Actually export fopencookie(3)
Branches
Unknown
Tags
Unknown