fix binary file mode in torrent_info. Fixes #354
This commit is contained in:
parent
ff3e80c42f
commit
ce99813b48
|
@ -286,7 +286,7 @@ namespace libtorrent
|
|||
// don't load torrent files larger than 2 MB
|
||||
if (s > 2000000) return;
|
||||
std::vector<char> buf(s);
|
||||
std::ifstream f(filename);
|
||||
std::ifstream f(filename, std::ios_base::binary);
|
||||
f.read(&buf[0], s);
|
||||
|
||||
std::string error;
|
||||
|
|
Loading…
Reference in New Issue