diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-10-03 15:58:20 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-10-03 15:58:20 +0000 |
commit | 06aa92a1b805a79ccf1e4d918298ab3c7b078a39 (patch) | |
tree | 2f283732548b11bf0e682b76a522ad0fe86c753e /lib/libstand/splitfs.c | |
parent | f3f8ad79f64bcb2e92d92cfd6a77a532d50b8ca9 (diff) | |
download | FreeBSD-src-06aa92a1b805a79ccf1e4d918298ab3c7b078a39.zip FreeBSD-src-06aa92a1b805a79ccf1e4d918298ab3c7b078a39.tar.gz |
Don't add integers to void pointers.
Diffstat (limited to 'lib/libstand/splitfs.c')
-rw-r--r-- | lib/libstand/splitfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/splitfs.c b/lib/libstand/splitfs.c index 35593ad..9adcdec 100644 --- a/lib/libstand/splitfs.c +++ b/lib/libstand/splitfs.c @@ -207,7 +207,7 @@ splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) sf->tot_pos += nread; sf->file_pos += nread; totread += nread; - buf += nread; + buf = (char *)buf + nread; if (totread < size) { /* EOF */ if (sf->curfile == (sf->filesc - 1)) /* Last slice */ |