fix pad file bug in create_torrent and amend docs about pad files

This commit is contained in:
Arvid Norberg
2011-11-25 09:45:28 +00:00
parent 38889d4bda
commit 6aba061cb8
2 changed files with 4 additions and 2 deletions

View File

@@ -540,7 +540,8 @@ namespace libtorrent
i->offset = off;
char name[30];
snprintf(name, sizeof(name), ".____padding_file/%d", padding_file);
i->set_name(name);
std::string path = combine_path(m_name, name);
i->set_name(path.c_str());
i->pad_file = true;
off += pad_size;
++padding_file;