diff options
Diffstat (limited to 'lib/libc/rpc/clnt_vc.c')
| -rw-r--r-- | lib/libc/rpc/clnt_vc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c index 824a85570d41..f1a8e2010da9 100644 --- a/lib/libc/rpc/clnt_vc.c +++ b/lib/libc/rpc/clnt_vc.c @@ -738,7 +738,7 @@ write_vc(ctp, buf, len) } } } else { - for (cnt = len; cnt > 0; cnt -= i, buf += i) { + for (cnt = len; cnt > 0; cnt -= i, buf = (char *)buf + i) { if ((i = _write(ct->ct_fd, buf, (size_t)cnt)) == -1) { ct->ct_error.re_errno = errno; ct->ct_error.re_status = RPC_CANTSEND; |
