diff options
author | neel <neel@FreeBSD.org> | 2012-11-11 03:26:14 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2012-11-11 03:26:14 +0000 |
commit | bc4be3dff1bc1b0cdc3ea30df0fd3e83998cf9eb (patch) | |
tree | b6b271fb331d43e30e10d824f2042de2c063f2eb /usr.sbin/bhyve | |
parent | 263c4acf84c3be71025f3484c0378a83cd668e15 (diff) | |
parent | de6ea8b20e870490db809a8d8a965bd784981d81 (diff) | |
download | FreeBSD-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.c | 2 |
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) { |