diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2014-01-22 04:34:26 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2014-01-22 04:34:26 +0000 |
commit | e0100fdba2add4731218604d919e1bd2a2521529 (patch) | |
tree | 51ebc56430da00f67df3d96ee88efc593048574c /sys/net/pf_norm.c | |
parent | 36fbd3cafde48b7bf891e033d770bd186876d7d2 (diff) |
one more absolutely obvious bcopy -> memcpy
Diffstat (limited to 'sys/net/pf_norm.c')
-rw-r--r-- | sys/net/pf_norm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c index fc862ccada8..614f6428803 100644 --- a/sys/net/pf_norm.c +++ b/sys/net/pf_norm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_norm.c,v 1.163 2013/11/16 00:36:01 chl Exp $ */ +/* $OpenBSD: pf_norm.c,v 1.164 2014/01/22 04:34:25 henning Exp $ */ /* * Copyright 2001 Niels Provos <provos@citi.umich.edu> @@ -1417,7 +1417,7 @@ pf_normalize_mss(struct pf_pdesc *pd, u_int16_t maxmss) } switch (opt) { case TCPOPT_MAXSEG: - bcopy((caddr_t)(optp + 2), (caddr_t)&mss, 2); + memcpy(&mss, (optp + 2), 2); if (ntohs(mss) > maxmss) { mss = htons(maxmss); m_copyback(pd->m, |