Merge pull request #43 from toyg/libtorrent_build_warning_fix

Fixed warning for snprintf call
This commit is contained in:
miguelfreitas 2014-01-08 03:09:25 -08:00
commit 6328df818f

View File

@ -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;
} }