summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2014-12-04 19:55:50 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2014-12-04 19:55:50 +0000
commit8bda3bbcf4ee6efd817eaefb844577102fdc7d47 (patch)
tree9a1464e70fbfd337731816c00ba3b20790911057 /usr.sbin/bgpd
parentc287c57fa80ff88fa9e747909a47591c6ad1262d (diff)
replace an overlapping memcpy with memmove, ok deraadt tedu
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index b84ada17a2c..f95a237c9f0 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.336 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: session.c,v 1.337 2014/12/04 19:55:49 sthen Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -1890,7 +1890,7 @@ session_process_msg(struct peer *p)
if (rpos < av) {
left = av - rpos;
- memcpy(&p->rbuf->buf, p->rbuf->buf + rpos, left);
+ memmove(&p->rbuf->buf, p->rbuf->buf + rpos, left);
p->rbuf->wpos = left;
} else
p->rbuf->wpos = 0;