diff options
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c index d784e25..5ec6722 100644 --- a/sys/i386/i386/mem.c +++ b/sys/i386/i386/mem.c @@ -199,7 +199,7 @@ mmrw(dev_t dev, struct uio *uio, int flags) if (error) break; - iov->iov_base += c; + iov->iov_base = (char *)iov->iov_base + c; iov->iov_len -= c; uio->uio_offset += c; uio->uio_resid -= c; |