summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_writev.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_writev.c')
-rw-r--r--lib/libc_r/uthread/uthread_writev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_writev.c b/lib/libc_r/uthread/uthread_writev.c
index 77046d5..31d2b8c 100644
--- a/lib/libc_r/uthread/uthread_writev.c
+++ b/lib/libc_r/uthread/uthread_writev.c
@@ -134,7 +134,9 @@ _writev(int fd, const struct iovec * iov, int iovcnt)
* for the next write:
*/
p_iov[idx].iov_len -= cnt;
- p_iov[idx].iov_base += cnt;
+ p_iov[idx].iov_base =
+ (char *)p_iov[idx].iov_base
+ + cnt;
cnt = 0;
}
}
OpenPOWER on IntegriCloud