]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299581
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:35:14 +0000 (06:35 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:35:14 +0000 (06:35 +0000)
commit319bff13ff75cde1622a7c87b917afaf56b7a518
tree665e546d0d094dc92f741b9e6de06a33900b5835
parent181d890561ff1510cb04a20c725862748d3b4a6e
MFC r299581

Use strlcpy() instead of strncpy() to ensure that qf->fsname is NUL
terminated.  Don't bother checking for truncation since the subsequent
stat() call should detect that and fail.

Reported by: Coverity
CID: 1018189

git-svn-id: svn://svn.freebsd.org/base/stable/10@300272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libutil/quotafile.c