Merge pull request #42 from AdamWill/string_literal

fix some 'format not a string literal's
This commit is contained in:
miguelfreitas 2014-01-08 02:43:52 -08:00
commit 6033aae14f
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