forked from premiere/premiere-libtorrent
merged documentation fix from RC_0_16
This commit is contained in:
parent
9db408b416
commit
5fff90b288
|
@ -7307,7 +7307,7 @@ code to do that::
|
|||
entry te = ct.generate();
|
||||
std::vector<char> buffer;
|
||||
bencode(std::back_inserter(buffer), te);
|
||||
FILE* f = fopen((to_hex(ti->info_hash().to_string()) + ".torrent").c_str(), "w+");
|
||||
FILE* f = fopen((to_hex(ti->info_hash().to_string()) + ".torrent").c_str(), "wb+");
|
||||
if (f) {
|
||||
fwrite(&buffer[0], 1, buffer.size(), f);
|
||||
fclose(f);
|
||||
|
|
Loading…
Reference in New Issue