From 64a1df7d12d48639fe5030213dcd726c3ef82f76 Mon Sep 17 00:00:00 2001 From: stefanf Date: Thu, 10 Mar 2005 08:25:49 +0000 Subject: Avoid pointer arithmetics on void *. Approved by: alfred --- lib/libc/rpc/clnt_vc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c index 9caa0b2..10780a5 100644 --- a/lib/libc/rpc/clnt_vc.c +++ b/lib/libc/rpc/clnt_vc.c @@ -729,7 +729,7 @@ write_vc(ctp, buf, len) sal = sizeof(sa); if ((_getpeername(ct->ct_fd, &sa, &sal) == 0) && (sa.sa_family == AF_LOCAL)) { - for (cnt = len; cnt > 0; cnt -= i, buf += i) { + for (cnt = len; cnt > 0; cnt -= i, buf = (char *)buf + i) { if ((i = __msgwrite(ct->ct_fd, buf, (size_t)cnt)) == -1) { ct->ct_error.re_errno = errno; -- cgit v1.1