diff --git a/src/assert.cpp b/src/assert.cpp index 3857aa9e3..cf77da4d3 100644 --- a/src/assert.cpp +++ b/src/assert.cpp @@ -103,7 +103,7 @@ std::string demangle(char const* name) #include "windows.h" #include "dbghelp.h" -std::string demangle(char const* name) +std::string demangle(char const* name) { char demangled_name[256]; if (UnDecorateSymbolName(name, demangled_name, sizeof(demangled_name), UNDNAME_NO_THROW_SIGNATURES) == 0) @@ -209,7 +209,7 @@ TORRENT_EXPORT void print_backtrace(char* out, int len, int max_depth) TORRENT_EXPORT void print_backtrace(char* out, int len, int max_depth) { out[0] = 0; - strncat(out, "", len) + strncat(out, "", len); } #endif diff --git a/src/torrent.cpp b/src/torrent.cpp index 94b185bb8..ea5e92df6 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -7220,7 +7220,7 @@ namespace libtorrent v.push_back(peer_info()); peer_info& p = v.back(); - + peer->get_peer_info(p); #ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES if (resolving_countries())