]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
timed(8): Use strlcpy() for bounds checking.
authorpfg <pfg@FreeBSD.org>
Sat, 14 May 2016 02:42:09 +0000 (02:42 +0000)
committerpfg <pfg@FreeBSD.org>
Sat, 14 May 2016 02:42:09 +0000 (02:42 +0000)
commit3a5ddc93d34acc72d2217555c9635ab1f2d8cf32
tree70c6b09445cc6d1bc40261f9b5757607742eecbe
parent1bd762c01aa7de44d695f499728bafc9ffcc4cc8
timed(8): Use strlcpy() for bounds checking.

Prevent some theorical buffer overruns reported by Coverity.
Cleanup a use of gethostname() while here.

CID: 1006713101116610111671011168,
usr.sbin/timed/timed/master.c
usr.sbin/timed/timed/slave.c
usr.sbin/timed/timed/timed.c