mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 20:22:31 +00:00
* Minor portability fixes.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@638 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -124,7 +124,7 @@ Lockfile::locked_by() const {
|
||||
return process_type(std::string(), 0);
|
||||
|
||||
char first[256];
|
||||
char* last = first + std::max(read(fd, first, 255), 0);
|
||||
char* last = first + std::max<ssize_t>(read(fd, first, 255), 0);
|
||||
|
||||
*last = '\0';
|
||||
::close(fd);
|
||||
|
||||
Reference in New Issue
Block a user