fix some 'format not a string literal's

This commit is contained in:
Adam Williamson 2014-01-07 19:37:30 -08:00
parent c1dde0f87e
commit 5d11289b4c
2 changed files with 3 additions and 3 deletions

View File

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

View File

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