diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-09 14:14:02 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-09 14:14:02 +0000 |
commit | 820a7dca65ee0fa2073caf0613705dda6edbc2dd (patch) | |
tree | aee7eeea3ff476466d90d04f557b770051f3c2ee | |
parent | f86a4642f2f6bb8372015afb074197c94cd1b677 (diff) |
memcpy/memmove correctness here as well
-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; |