Searched hist:300265 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10-stable/usr.bin/mklocale/
H A Dyacc.ydiff 300265 Fri May 20 04:09:13 MDT 2016 truckman MFC r299524

Use strlcpy() instead of strncpy() when copying the encoding value
to ensure that the destination is NUL terminated. Length truncation
of one more character should not be an issue since encoding values
that long are not supported by libc. The destination string is
treated as a NUL terminated string, but it is only passed to strcmp()
for comparison to a set of shorter, fixed length strings, so this
is not a serious problem.

Reported by: Coverity
CID: 974769

Completed in 122 milliseconds