diff options
author | Brian Somers <brian@FreeBSD.org> | 1999-12-18 02:31:36 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1999-12-18 02:31:36 +0000 |
commit | aa4e7342497ffa6dca611f3f6bda61d3f30a996a (patch) | |
tree | c86f2468e5c421940a1fdbde1ab2e5632282b5c8 /usr.sbin | |
parent | a4415a1c07b8b28ffa08ebcce6bc19d5be0079aa (diff) | |
download | src-aa4e7342497ffa6dca611f3f6bda61d3f30a996a.tar.gz src-aa4e7342497ffa6dca611f3f6bda61d3f30a996a.zip |
Learn to do pointer arithmatic (doh!)
Notes
Notes:
svn path=/head/; revision=54766
Diffstat (limited to 'usr.sbin')
-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 de4e6b70540b..c2520fd2c16b 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; } |