diff options
author | brian <brian@FreeBSD.org> | 1999-12-18 02:31:36 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-12-18 02:31:36 +0000 |
commit | e320900d1162e46fe1dbe5fc136e6a56f5f9840d (patch) | |
tree | eb5429be26d7952391a76018bc6c6f75d8dccd80 | |
parent | 597529e0d5661d66f3de031ae824a2a7d674c3b9 (diff) | |
download | FreeBSD-src-e320900d1162e46fe1dbe5fc136e6a56f5f9840d.zip FreeBSD-src-e320900d1162e46fe1dbe5fc136e6a56f5f9840d.tar.gz |
Learn to do pointer arithmatic (doh!)
-rw-r--r-- | usr.sbin/ppp/mbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c index de4e6b7..c2520fd 100644 --- a/usr.sbin/ppp/mbuf.c +++ b/usr.sbin/ppp/mbuf.c @@ -165,7 +165,7 @@ mbuf_Prepend(struct mbuf *bp, const void *ptr, size_t len, size_t extra) return bp; } len -= bp->offset; - memcpy(bp + sizeof *bp, (const char *)ptr + len, bp->offset); + memcpy(bp + 1, (const char *)ptr + len, bp->offset); bp->cnt += bp->offset; bp->offset = 0; } |