Changeset 7540


Ignore:
Timestamp:
Dec 30, 2008, 2:42:45 AM (12 years ago)
Author:
charles
Message:

(trunk libT) fix r7535 bug reported by Rolcol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r7535 r7540  
    14211421        {
    14221422            uint8_t buf[MAX_STACK_ARRAY_SIZE];
    1423             const size_t thisPass = MIN( n, sizeof( buf ) );
     1423            const size_t thisPass = MIN( i, sizeof( buf ) );
    14241424            tr_peerIoReadBytes( msgs->peer->io, inbuf, buf, thisPass );
    14251425            evbuffer_add( msgs->incoming.block, buf, thisPass );
Note: See TracChangeset for help on using the changeset viewer.