Ignore:
Timestamp:
Jun 24, 2010, 8:36:05 PM (12 years ago)
Author:
charles
Message:

(trunk) #3339 "crash when download some magnet links" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10839 r10842  
    541541 * (2) pieceSize must be a multiple of block size
    542542 */
    543 static uint32_t
    544 getBlockSize( uint32_t pieceSize )
     543uint32_t
     544tr_getBlockSize( uint32_t pieceSize )
    545545{
    546546    uint32_t b = pieceSize;
     
    562562    tr_info * info = &tor->info;
    563563
    564     tor->blockSize = getBlockSize( info->pieceSize );
     564    tor->blockSize = tr_getBlockSize( info->pieceSize );
    565565
    566566    if( info->pieceSize )
     
    757757        result = TR_PARSE_ERR;
    758758
    759     if( didParse && hasInfo && !getBlockSize( setmeInfo->pieceSize ) )
     759    if( didParse && hasInfo && !tr_getBlockSize( setmeInfo->pieceSize ) )
    760760        result = TR_PARSE_ERR;
    761761
Note: See TracChangeset for help on using the changeset viewer.