diff options
-rw-r--r-- | usr.sbin/ospfd/imsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/imsg.c b/usr.sbin/ospfd/imsg.c index b8634ebd62e..e9730b2747d 100644 --- a/usr.sbin/ospfd/imsg.c +++ b/usr.sbin/ospfd/imsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.1 2005/01/28 14:05:40 claudio Exp $ */ +/* $OpenBSD: imsg.c,v 1.2 2005/03/09 14:14:01 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -116,7 +116,7 @@ imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) if (imsg->hdr.len < av) { left = av - imsg->hdr.len; - memcpy(&ibuf->r.buf, ibuf->r.buf + imsg->hdr.len, left); + memmove(&ibuf->r.buf, ibuf->r.buf + imsg->hdr.len, left); ibuf->r.wpos = left; } else ibuf->r.wpos = 0; |