(trunk libT) fix r7594 typo
This commit is contained in:
parent
5afd327b15
commit
7fcad8a45b
|
@ -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 New Issue