diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-10-03 15:48:32 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-10-03 15:48:32 +0000 |
commit | f3f8ad79f64bcb2e92d92cfd6a77a532d50b8ca9 (patch) | |
tree | b6251711dd6e9d1b00be32f87d51336b7cfb47c1 /lib | |
parent | edc6f2e4d77116ba453ffed80df5f5e2b5686172 (diff) | |
download | FreeBSD-src-f3f8ad79f64bcb2e92d92cfd6a77a532d50b8ca9.zip FreeBSD-src-f3f8ad79f64bcb2e92d92cfd6a77a532d50b8ca9.tar.gz |
Don't add integers to void pointers.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/fgetws.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/fgetws.c b/lib/libc/stdio/fgetws.c index 9b7075d..b6ef01e 100644 --- a/lib/libc/stdio/fgetws.c +++ b/lib/libc/stdio/fgetws.c @@ -74,7 +74,8 @@ fgetws(wchar_t * __restrict ws, int n, FILE * __restrict fp) * after the null. */ nconv++; - src = memchr(fp->_p, '\0', fp->_r) + 1; + src = memchr(fp->_p, '\0', fp->_r); + src++; } fp->_r -= (unsigned char *)src - fp->_p; fp->_p = (unsigned char *)src; |