Browse Source

Fixed warning for snprintf call

miguelfreitas
toyg 11 years ago
parent
commit
3e24404d7e
  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