inet:sockif Fix warning

This commit is contained in:
David Sidrane 2021-04-20 08:33:01 -07:00 committed by Anthony Merlino
parent 8efec13ab0
commit a61f70d571

View File

@ -1272,7 +1272,7 @@ static ssize_t inet_sendmsg(FAR struct socket *psock,
for (len = 0, iov = msg->msg_iov; iov != end; iov++)
{
memcpy(buf + len, iov->iov_base, iov->iov_len);
memcpy(((unsigned char *)buf) + len, iov->iov_base, iov->iov_len);
len += iov->iov_len;
}