mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-08 18:19:08 +08:00
Cygwin: AF_UNIX: recvmsg: fix thinko
The pointer 'my_iovptr' was being incremented before it was used.
This commit is contained in:
parent
039be0a0b4
commit
e1beea13e1
@ -2357,10 +2357,10 @@ restart2:
|
||||
else
|
||||
{
|
||||
memcpy (my_iovptr->iov_base, ptr, my_iovptr->iov_len);
|
||||
++my_iovptr;
|
||||
--my_iovlen;
|
||||
ptr += my_iovptr->iov_len;
|
||||
nbytes_now -= my_iovptr->iov_len;
|
||||
++my_iovptr;
|
||||
--my_iovlen;
|
||||
}
|
||||
}
|
||||
if (!(waitall && my_iovlen))
|
||||
|
Loading…
x
Reference in New Issue
Block a user