mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
(trunk libT) fix r7594 typo
This commit is contained in:
parent
5afd327b15
commit
7fcad8a45b
1 changed files with 2 additions and 2 deletions
|
@ -244,9 +244,9 @@ tr_evbuffer_write( tr_peerIo * io, int fd, size_t howmuch )
|
|||
|
||||
errno = 0;
|
||||
#ifdef WIN32
|
||||
n = send(fd, buffer->buffer, n, 0 );
|
||||
n = send(fd, buffer->buffer, howmuch, 0 );
|
||||
#else
|
||||
n = write(fd, buffer->buffer, n );
|
||||
n = write(fd, buffer->buffer, howmuch );
|
||||
#endif
|
||||
e = errno;
|
||||
dbgmsg( io, "wrote %zd to peer (%s)", n, (n==-1?strerror(e):"") );
|
||||
|
|
Loading…
Reference in a new issue