]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r290903, r299573
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:19:00 +0000 (06:19 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:19:00 +0000 (06:19 +0000)
commita45dbedd6f58318e4c78c6522922017eba147952
treedd2eecf27ee9b77de9ed851365992cf551c2ce05
parent89a064d3a417d8316f70c744d3b04f4537861ca4
MFC r290903, r299573

r290903 is needed to prevent a conflict whem merging r299573

r290903 | araujo | 2015-11-15 19:18:40 -0800 (Sun, 15 Nov 2015) | 5 lines

Don't need cast malloc.

r299573 | truckman | 2016-05-12 14:35:40 -0700 (Thu, 12 May 2016) | 10 lines

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: 10096201009621

git-svn-id: svn://svn.freebsd.org/base/stable/10@300268 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/ypbind/ypbind.c