Browse Source

Merge pull request #43 from toyg/libtorrent_build_warning_fix

Fixed warning for snprintf call
miguelfreitas
miguelfreitas 11 years ago
parent
commit
6328df818f
  1. 2
      libtorrent/src/alert.cpp

2
libtorrent/src/alert.cpp

@ -354,7 +354,7 @@ namespace libtorrent {
std::string dht_reply_data_alert::message() const std::string dht_reply_data_alert::message() const
{ {
char msg[200]; char msg[200];
snprintf(msg, sizeof(msg), "reply to dht getData received %d entries", m_lst.size()); snprintf(msg, sizeof(msg), "reply to dht getData received %lu entries", m_lst.size());
return msg; return msg;
} }

Loading…
Cancel
Save