summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-11-11 03:26:14 +0000
committerneel <neel@FreeBSD.org>2012-11-11 03:26:14 +0000
commitbc4be3dff1bc1b0cdc3ea30df0fd3e83998cf9eb (patch)
treeb6b271fb331d43e30e10d824f2042de2c063f2eb /usr.sbin/bhyve
parent263c4acf84c3be71025f3484c0378a83cd668e15 (diff)
parentde6ea8b20e870490db809a8d8a965bd784981d81 (diff)
downloadFreeBSD-src-bc4be3dff1bc1b0cdc3ea30df0fd3e83998cf9eb.zip
FreeBSD-src-bc4be3dff1bc1b0cdc3ea30df0fd3e83998cf9eb.tar.gz
IFC @ r242684
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r--usr.sbin/bhyve/pci_virtio_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_net.c b/usr.sbin/bhyve/pci_virtio_net.c
index 26c8ee8..e3ef573 100644
--- a/usr.sbin/bhyve/pci_virtio_net.c
+++ b/usr.sbin/bhyve/pci_virtio_net.c
@@ -517,7 +517,7 @@ pci_vtnet_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
char tbuf[80];
strcpy(tbuf, "/dev/");
- strncat(tbuf, opts, sizeof(tbuf) - strlen(tbuf));
+ strlcat(tbuf, opts, sizeof(tbuf));
sc->vsc_tapfd = open(tbuf, O_RDWR);
if (sc->vsc_tapfd == -1) {
OpenPOWER on IntegriCloud