mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 03:02:30 +00:00
* Properly catch exceptions from commands called from DownloadFactory.
* The print command was not properly adding the final nul char to the buffer. * Added 'get_d_name' command. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@944 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ apply_print(const torrent::Object& rawArgs) {
|
||||
{
|
||||
int len = std::min<int>(itr->as_string().size(), buffer + 1024 - current);
|
||||
|
||||
std::memcpy(current, itr->as_string().c_str(), len);
|
||||
std::memcpy(current, itr->as_string().c_str(), len + 1);
|
||||
current += len;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user