From b5042148e8f34a87aa5265b69f4f3d35268d87d6 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 29 Oct 2009 17:00:22 +0000 Subject: [PATCH] (trunk libT) #2539: "incomplete folder" feature may lead to deleted files --- libtransmission/torrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index c61ea03e0..1aa6d3e57 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 ); }