fix off-by-one introduced in r4153

This commit is contained in:
Charles Kerr 2007-12-15 05:05:23 +00:00
parent 10b6e8ff8f
commit 20c5f2a77c
1 changed files with 1 additions and 1 deletions

View File

@ -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 )
{