]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299579
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:27:58 +0000 (06:27 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:27:58 +0000 (06:27 +0000)
commit95838651f8e0162ed6cd6e76a2346b4537d92256
tree31a0c88e7c35c9e271d3b141630228a29577406c
parent80a7f16229f243ba331a7970d3f864d3e975fd82
MFC r299579

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

Reported by: Coverity
CID: 1009980

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