(trunk libT) #2539: "incomplete folder" feature may lead to deleted files

This commit is contained in:
Charles Kerr 2009-10-29 17:00:22 +00:00
parent 3680896a19
commit b5042148e8
1 changed files with 1 additions and 1 deletions

View File

@ -2356,7 +2356,7 @@ tr_torrentDeleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
deleteLocalData( tor, fileFunc );
else {
/* torrent only has one file */
char * path = tr_torrentFindFile( tor, 0 );
char * path = tr_buildPath( tor->currentDir, tor->info.files[0].name, NULL );
fileFunc( path );
tr_free( path );
}