From 7538b3da8296bc4d9bd954c15f42e83c24388dce Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 9 Apr 2009 15:45:17 +0000 Subject: [PATCH] fixed string formatting bug --- include/libtorrent/alert_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 91ae57666..a124064b3 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -275,7 +275,7 @@ namespace libtorrent virtual std::string message() const { char ret[200]; - snprintf(ret, 200, "%s (%u) %s (%d)" + snprintf(ret, 200, "%s (%d) %s (%d)" , torrent_alert::message().c_str(), status_code, msg.c_str(), times_in_row); return ret; }