msvc format string fixes
This commit is contained in:
@@ -136,8 +136,8 @@ namespace libtorrent
|
||||
if (tracker_req().kind == tracker_request::announce_request)
|
||||
{
|
||||
char str[1024];
|
||||
snprintf(str, sizeof(str), "&peer_id=%s&port=%d&uploaded=%lld"
|
||||
"&downloaded=%lld&left=%lld&compact=1&numwant=%d&key=%x&no_peer_id=1"
|
||||
snprintf(str, sizeof(str), "&peer_id=%s&port=%d&uploaded=%"PRId64
|
||||
"&downloaded=%"PRId64"&left=%"PRId64"&compact=1&numwant=%d&key=%x&no_peer_id=1"
|
||||
, escape_string((const char*)&tracker_req().pid[0], 20).c_str()
|
||||
// the i2p tracker seems to verify that the port is not 0,
|
||||
// even though it ignores it otherwise
|
||||
|
Reference in New Issue
Block a user