From 5d11289b4c441c183af4e6e26631c6ed424f8ec1 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 7 Jan 2014 19:37:30 -0800 Subject: [PATCH] fix some 'format not a string literal's --- libtorrent/src/session_impl.cpp | 4 ++-- libtorrent/src/torrent.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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