Show
Ignore:
Timestamp:
05/01/08 13:14:43 (4 years ago)
Author:
rakshasa
Message:

* Fixed EINTR handling in execute command. Patch by anonymous.

* Fixed a couple of memory leaks in xmlrpc.cc. Reported by Novik.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rtorrent/src/rpc/parse.cc

    r1038 r1057  
    374374 
    375375  case torrent::Object::TYPE_VALUE: 
    376     return std::max(first + snprintf(first, std::distance(first, last), "%lli", src->as_value()), last); 
     376    return std::min(first + snprintf(first, std::distance(first, last), "%lli", src->as_value()), last); 
    377377 
    378378  case torrent::Object::TYPE_LIST: