* Make 'seeding' view trigger filtering on 'event.download.finished'.

* Fixed a potential buffer overflow in displaying of non-UTF8
filenames.

* Changed torrent::DownloadList::close_directly() so doesn't save the
session if the underlying file/directory has been moved or
removed. This change, in addition to calling 'd.set_directory=' before
'execute=mv,...', as previously shown in the examples, will make
rtorrent behave correctly when 'check_hash=no' is set.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1084 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-11-18 15:11:49 +00:00
parent d05e889317
commit 15ae43a5ea
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ wstring_width(const std::string& i_str, int width) {
if (length == (size_t)-1) {
wchar_t* out = result;
for (std::string::const_iterator itr = i_str.begin(); itr != i_str.end(); ++itr)
for (std::string::const_iterator itr = i_str.begin(); out != result + width && itr != i_str.end(); ++itr)
if (!std::isprint(*itr, std::locale::classic()))
*out++ = '?';
else