summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_socket.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-12-11 19:21:58 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-12-11 19:21:58 +0000
commita910e52291d2cfda61f90e627a5bad213f867725 (patch)
tree931f97a1573be7eab5816a0ebfb81db79383e17c /sys/kern/uipc_socket.c
parentce5ed9abd090b575ddb198f85a99c6df14c7e6ed (diff)
convert bcopy to memcpy/memmove. ok krw
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r--sys/kern/uipc_socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index c848d3881a7..17149a97281 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.134 2014/11/03 17:20:46 bluhm Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.135 2014/12/11 19:21:57 tedu Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -1767,8 +1767,8 @@ sogetopt(struct socket *so, int level, int optname, struct mbuf **mp)
if (unp->unp_flags & UNP_FEIDS) {
m->m_len = sizeof(unp->unp_connid);
- bcopy(&(unp->unp_connid),
- mtod(m, caddr_t), m->m_len);
+ memcpy(mtod(m, caddr_t),
+ &(unp->unp_connid), m->m_len);
break;
}
(void)m_free(m);