]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299580
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:33:02 +0000 (06:33 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:33:02 +0000 (06:33 +0000)
commit181d890561ff1510cb04a20c725862748d3b4a6e
treeaea8f8c44294170e06ed90107404666729b8996c
parent95838651f8e0162ed6cd6e76a2346b4537d92256
MFC r299580

Use strlcpy() instead of strncpy() to ensure that ret->name is
NUL terminated.  The source and destination buffers are the same
size and the source *should* be NUL terminated, but be paranoid.

Reported by: Coverity
CID: 1011274

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