We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a8a4de commit 124f95bCopy full SHA for 124f95b
1 file changed
mag2tor.cpp
@@ -62,7 +62,8 @@ int main(int argc, char *argv[]) {
62
std::ofstream ofs;
63
ofs.exceptions(std::ofstream::failbit
64
| std::ofstream::badbit);
65
- ofs.open(tinf.name() + ".torrent");
+ ofs.open(tinf.name() + ".torrent",
66
+ std::ofstream::binary);
67
std::ostream_iterator<char> ofsi(ofs);
68
lt::bencode(ofsi, lt::create_torrent(tinf)
69
.generate());
0 commit comments