mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 15:42:30 +00:00
* Fixed warnings in snprintf statements.
* Don't send numwant in tracker STOPPED requests. * Reintroudced clearing of epoll event list when a socket is closed as it might cause race conditions. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1097 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+2
-1
@@ -84,7 +84,8 @@ print_buffer(char* first, char* last, const char* format) {
|
||||
if (first >= last)
|
||||
return first;
|
||||
|
||||
int s = snprintf(first, last - first, format);
|
||||
// Adding 'i' format to suppress a GCC warning.
|
||||
int s = snprintf(first, last - first, format, 0);
|
||||
|
||||
if (s < 0)
|
||||
return first;
|
||||
|
||||
Reference in New Issue
Block a user