From: Charles Kerr Date: Sun, 10 Jan 2010 02:40:22 +0000 (+0000) Subject: (trunk libT) #2740 "sefault in torrent creating" -- fixed for 1.80 X-Git-Tag: 1.80b5~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f19dbd6002fa0f99ae58414cc1d76d07f5be9a1;p=transmission (trunk libT) #2740 "sefault in torrent creating" -- fixed for 1.80 --- diff --git a/libtransmission/makemeta.c b/libtransmission/makemeta.c index 485769872..5b37de8bc 100644 --- a/libtransmission/makemeta.c +++ b/libtransmission/makemeta.c @@ -340,7 +340,7 @@ makeInfoDict( tr_benc * dict, tr_bencDictReserve( dict, 5 ); - if( builder->isSingleFile ) + if( builder->fileCount == 1 ) tr_bencDictAddInt( dict, "length", builder->files[0].size ); else {