]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 334272: bhyve: guarantee NUL termination
authorjhb <jhb@FreeBSD.org>
Thu, 9 May 2019 22:42:23 +0000 (22:42 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 9 May 2019 22:42:23 +0000 (22:42 +0000)
commitc85a996d4a43f4a9f8f7e1506198cc1bfd015e2f
tree50c951bc60d0855a94e292324fd416921b31a7bf
parentbd700cc330b2bca4cd7288b70edbdac9997080c8
MFC 334272: bhyve: guarantee NUL termination

Use strlcpy to guarantee NUL termination of the path to a
virtio console socket.
usr.sbin/bhyve/pci_virtio_console.c