]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299525
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:05:20 +0000 (06:05 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:05:20 +0000 (06:05 +0000)
commit89a064d3a417d8316f70c744d3b04f4537861ca4
tree4e6ed14c72f4b40f10644d9026ed400daf00fc0f
parent84b6338e72e212cfb0fee745eebdefed52ecb25b
MFC r299525

  Use strlcpy() instead of strncpy() when copying date and subj
  to ensure that these are properly NUL terminated since they
  are passed to printf().

Reported by: Coverity
CID: 974770

git-svn-id: svn://svn.freebsd.org/base/stable/10@300266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/msgs/msgs.c