freebsd-dev/usr.bin/mklocale
Don Lewis 1f12a67942 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
MFC after:	1 week
2016-05-12 08:41:22 +00:00
..
extern.h Reintegrate colldef(1) and mklocale(1) 2015-11-20 23:15:05 +00:00
ldef.h Reintegrate colldef(1) and mklocale(1) 2015-11-20 23:15:05 +00:00
lex.l Reintegrate colldef(1) and mklocale(1) 2015-11-20 23:15:05 +00:00
Makefile Reintegrate colldef(1) and mklocale(1) 2015-11-20 23:15:05 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
mklocale.1 Note that mklocale(1) and colldef(1) are no longer used 2016-04-17 23:02:49 +00:00
yacc.y Use strlcpy() instead of strncpy() when copying the encoding value 2016-05-12 08:41:22 +00:00