diff options
Diffstat (limited to 'usr.sbin/vmd')
-rw-r--r-- | usr.sbin/vmd/virtio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/virtio.c b/usr.sbin/vmd/virtio.c index 57dbdb9d193..a20d81a64fd 100644 --- a/usr.sbin/vmd/virtio.c +++ b/usr.sbin/vmd/virtio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtio.c,v 1.22 2016/10/12 06:56:54 mlarkin Exp $ */ +/* $OpenBSD: virtio.c,v 1.23 2016/10/16 19:07:05 guenther Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -1308,7 +1308,7 @@ virtio_init(struct vm_create_params *vcp, int *child_disks, int *child_taps) if (memcmp(zero_mac, &vcp->vcp_macs[i], 6) != 0) { vionet[i].cfg.device_feature = VIRTIO_NET_F_MAC; - bcopy(&vcp->vcp_macs[i], &vionet[i].mac, 6); + memcpy(&vionet[i].mac, &vcp->vcp_macs[i], 6); } } } |