typecast void pointer to char* for pointer arithmetic

This commit is contained in:
Andrew Skalski 1999-11-27 20:58:33 +00:00
parent 3e8303abf0
commit ecc77c81cc

View File

@ -824,7 +824,7 @@ my_send(int s, void *buf, size_t len)
if (sent == -1)
return -1;
buf += sent;
buf = (char*) buf + sent;
size -= sent;
}