]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r287650:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 25 Sep 2015 01:17:52 +0000 (01:17 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 25 Sep 2015 01:17:52 +0000 (01:17 +0000)
commitd0a05637d7edd27a984324a5928a22d93c004987
tree8d60a2bbd9006b3582fcff890c89828502dba781
parente0f21a0a3699f65a4bed45fb032c577a30d4ceff
MFC r287650:

Use strlcpy() in favor of strncpy() as it's defined to have a nul character
at the end of string buffer, and the code context do expects this to behave
correctly (e.g. strchr).

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