mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
fix off-by-one introduced in r4153
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user