merged documentation fix from RC_0_16

This commit is contained in:
Arvid Norberg 2013-05-26 02:42:43 +00:00
parent 9db408b416
commit 5fff90b288
1 changed files with 1 additions and 1 deletions

View File

@ -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);