Fix warnings.

This commit is contained in:
Victor Zverovich 2014-06-30 18:38:45 -07:00
parent 536fedfe0f
commit 442c122c44
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ using fmt::FormatError;
// Returns a number UINT_MAX + 1 formatted as a string.
std::string GetBigNumber() {
char format[BUFFER_SIZE];
sprintf(format, "%u", UINT_MAX);
SPrintf(format, "%u", UINT_MAX);
Increment(format + 1);
return format;
}

View File

@ -239,7 +239,7 @@ TEST(UtilTest, FormatWinErrorMessage) {
fmt::internal::FormatWinErrorMessage(
actual_message, ERROR_FILE_EXISTS, "test");
EXPECT_EQ(fmt::format("test: {}", fmt::str(utf8_message)),
fmt::str(actual_message));
actual_message.str());
}
TEST(UtilTest, WinErrorSink) {