aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve
diff options
context:
space:
mode:
authorNeel Natu <neel@FreeBSD.org>2012-11-11 03:26:14 +0000
committerNeel Natu <neel@FreeBSD.org>2012-11-11 03:26:14 +0000
commita10c6f5544ccbab911d786d4b50d50cabd6bb5ab (patch)
treeb6b271fb331d43e30e10d824f2042de2c063f2eb /usr.sbin/bhyve
parentc3e9ce3312e8bd27c01e00889f1a07bc630e26fc (diff)
parent3f3708b3dda0b7f3ef496956d0b23a2cbf15b71c (diff)
downloadsrc-a10c6f5544ccbab911d786d4b50d50cabd6bb5ab.tar.gz
src-a10c6f5544ccbab911d786d4b50d50cabd6bb5ab.zip
IFC @ r242684
Notes
Notes: svn path=/projects/bhyve/; revision=242882
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 26c8ee812f4c..e3ef57340c23 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) {