Avoid pointer arithmetics on void *.

Approved by:	alfred
This commit is contained in:
stefanf 2005-03-10 08:25:49 +00:00
parent f513491411
commit 64a1df7d12

View File

@ -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;