Changeset 76


Ignore:
Timestamp:
Jan 31, 2006, 7:11:28 AM (15 years ago)
Author:
titer
Message:

Fixes a crash (quite amazing that it didn't crash more often, actually...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/choking.c

    r75 r76  
    141141        peersCanChokeCount -= willChoke;
    142142        memmove( &peersCanChoke[0], &peersCanChoke[willChoke],
    143                  peersCanChokeCount );
     143                 peersCanChokeCount * sizeof( tr_peer_t * ) );
    144144    }
    145145    else if( unchokedCount < c->slots && peersCanUnchokeCount > 0 )
     
    162162        peersCanChokeCount--;
    163163        peersCanUnchokeCount--;
    164         memmove( &peersCanChoke[0], &peersCanChoke[1], peersCanChokeCount );
     164        memmove( &peersCanChoke[0], &peersCanChoke[1],
     165                 peersCanChokeCount * sizeof( tr_peer_t * ) );
    165166    }
    166167
Note: See TracChangeset for help on using the changeset viewer.