Changeset 1613


Ignore:
Timestamp:
Mar 31, 2007, 7:10:32 PM (15 years ago)
Author:
joshe
Message:

Unbreak multifile torrents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r1612 r1613  
    613613            item = &files->val.l.vals[ii];
    614614            path = tr_bencDictFindFirst( item, "path.utf-8", "path", NULL );
    615             if( getfile( inf->files[ii-1].name, sizeof( inf->files[0].name ),
     615            if( getfile( inf->files[ii].name, sizeof( inf->files[0].name ),
    616616                         inf->name, path ) )
    617617            {
     
    627627                return 1;
    628628            }
    629             inf->files[ii-1].length = length->val.i;
     629            inf->files[ii].length = length->val.i;
    630630            inf->totalSize         += length->val.i;
    631631        }
Note: See TracChangeset for help on using the changeset viewer.