]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use strlcpy() instead of strncpy() when copying date and subj
authortruckman <truckman@FreeBSD.org>
Thu, 12 May 2016 08:55:57 +0000 (08:55 +0000)
committertruckman <truckman@FreeBSD.org>
Thu, 12 May 2016 08:55:57 +0000 (08:55 +0000)
commita2dde154fcb048159a2e917f5764c01d4203b528
treeb58eafe89cca27bf76ea06fa63d3fe3c695da6b2
parent1cbdd13fe92e5b4285a86f56a09b80d821cda19a
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
MFH: 1 week
usr.bin/msgs/msgs.c