mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-07 10:42:31 +00:00
* Fixed EINTR handling in execute command. Patch by anonymous.
* Fixed a couple of memory leaks in xmlrpc.cc. Reported by Novik. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1057 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+1
-1
@@ -373,7 +373,7 @@ print_object(char* first, char* last, const torrent::Object* src, int flags) {
|
||||
}
|
||||
|
||||
case torrent::Object::TYPE_VALUE:
|
||||
return std::max(first + snprintf(first, std::distance(first, last), "%lli", src->as_value()), last);
|
||||
return std::min(first + snprintf(first, std::distance(first, last), "%lli", src->as_value()), last);
|
||||
|
||||
case torrent::Object::TYPE_LIST:
|
||||
for (torrent::Object::list_const_iterator itr = src->as_list().begin(), itrEnd = src->as_list().end(); itr != itrEnd; itr++) {
|
||||
|
||||
Reference in New Issue
Block a user