aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_mbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 74c8ef62eb8d..0f1a0c5e4e0c 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -729,7 +729,7 @@ m_dup(const struct mbuf *m, int how)
while (n->m_len < nsize && m != NULL) {
int chunk = min(nsize - n->m_len, m->m_len - moff);
- bcopy(m->m_data + moff, n->m_data + n->m_len, chunk);
+ m_copydata(m, moff, chunk, n->m_data + n->m_len);
moff += chunk;
n->m_len += chunk;
remain -= chunk;