diff options
author | Neel Natu <neel@FreeBSD.org> | 2012-11-11 03:26:14 +0000 |
---|---|---|
committer | Neel Natu <neel@FreeBSD.org> | 2012-11-11 03:26:14 +0000 |
commit | a10c6f5544ccbab911d786d4b50d50cabd6bb5ab (patch) | |
tree | b6b271fb331d43e30e10d824f2042de2c063f2eb /usr.sbin/bhyve | |
parent | c3e9ce3312e8bd27c01e00889f1a07bc630e26fc (diff) | |
parent | 3f3708b3dda0b7f3ef496956d0b23a2cbf15b71c (diff) | |
download | src-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.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 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) { |