fix off-by-one introduced in r4153
This commit is contained in:
parent
10b6e8ff8f
commit
20c5f2a77c
|
@ -266,7 +266,7 @@ checkFile( tr_torrent * tor,
|
|||
tr_buildPath ( path, sizeof(path), tor->destination, file->name, NULL );
|
||||
nofile = stat( path, &sb ) || !S_ISREG( sb.st_mode );
|
||||
|
||||
for( i=file->firstPiece; i<file->lastPiece && (!*abortFlag); ++i )
|
||||
for( i=file->firstPiece; i<=file->lastPiece && (!*abortFlag); ++i )
|
||||
{
|
||||
if( nofile )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue