merged in differences from release branch

This commit is contained in:
Arvid Norberg
2005-11-18 01:12:21 +00:00
parent ff365bc39e
commit 477d5ec238
6 changed files with 29 additions and 12 deletions

View File

@@ -63,10 +63,7 @@ void add_files(
else
{
std::cerr << "adding \"" << l.string() << "\"\n";
file fi(f, file::in);
fi.seek(0, file::end);
libtorrent::size_type size = fi.tell();
t.add_file(l, size);
t.add_file(l, file_size(f));
}
}
@@ -82,8 +79,6 @@ int main(int argc, char* argv[])
return 1;
}
path::default_name_check(no_check);
try
{
torrent_info t;