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/read.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/read.c')
-rw-r--r-- | lib/libstand/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/read.c b/lib/libstand/read.c index 07401c1..09e24e1 100644 --- a/lib/libstand/read.c +++ b/lib/libstand/read.c @@ -108,7 +108,7 @@ read(int fd, void *dest, size_t bcount) resid -= ccount; if (resid == 0) return(bcount); - dest += ccount; + dest = (char *)dest + ccount; } /* will filling the readahead buffer again not help? */ |