diff --git a/libtorrent/src/session_impl.cpp b/libtorrent/src/session_impl.cpp index d47c5b2b..fa7d7e48 100644 --- a/libtorrent/src/session_impl.cpp +++ b/libtorrent/src/session_impl.cpp @@ -4948,7 +4948,7 @@ retry: char buf[450]; snprintf(buf, sizeof(buf), "%s: %s\n", time_now_string(), usr); // printf is the bitcoin/util.h logger - printf(buf); + printf("%s", buf); //(*m_logger) << buf; } #endif @@ -6516,7 +6516,7 @@ retry: char buf[1280]; snprintf(buf, sizeof(buf), "%s: %s\n", time_now_string(), usr); // printf is the bitcoin/util.h logger - printf(buf); + printf("%s", buf); //(*m_ses.m_logger) << buf; } #endif diff --git a/libtorrent/src/torrent.cpp b/libtorrent/src/torrent.cpp index 1601a05d..a808d00f 100644 --- a/libtorrent/src/torrent.cpp +++ b/libtorrent/src/torrent.cpp @@ -8632,7 +8632,7 @@ namespace libtorrent , to_hex(info_hash().to_string()).substr(0, 6).c_str(), usr); //(*m_ses.m_logger) << buf; // [MF] - printf(buf); + printf("%s", buf); } #endif