summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Bell <peterbell10@live.co.uk>2020-05-15 20:10:43 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-05-16 10:39:05 +0200
commit104961b889654c2685ee7d3cba19a6b143548d94 (patch)
tree677a1f03ee63d6d7e8ac27132319f47463e66186
parentUse thread safe localtime_r on linux (diff)
downloadcuberite-104961b889654c2685ee7d3cba19a6b143548d94.tar
cuberite-104961b889654c2685ee7d3cba19a6b143548d94.tar.gz
cuberite-104961b889654c2685ee7d3cba19a6b143548d94.tar.bz2
cuberite-104961b889654c2685ee7d3cba19a6b143548d94.tar.lz
cuberite-104961b889654c2685ee7d3cba19a6b143548d94.tar.xz
cuberite-104961b889654c2685ee7d3cba19a6b143548d94.tar.zst
cuberite-104961b889654c2685ee7d3cba19a6b143548d94.zip
-rw-r--r--src/LoggerListeners.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LoggerListeners.cpp b/src/LoggerListeners.cpp
index 24a4e5d45..b7c8fbb38 100644
--- a/src/LoggerListeners.cpp
+++ b/src/LoggerListeners.cpp
@@ -21,7 +21,7 @@
virtual void Log(std::string_view a_Message, eLogLevel a_LogLevel) override
{
SetLogColour(a_LogLevel);
- fwrite(a_Message.data(), 1, a_Message.size(), stdout);
+ fwrite(a_Message.data(), sizeof(char), a_Message.size(), stdout);
SetDefaultLogColour();
}
};
@@ -186,7 +186,7 @@ public:
break;
}
}
- fwrite(a_Message.data(), 1, a_Message.size(), stdout);
+ fwrite(a_Message.data(), sizeof(char), a_Message.size(), stdout);
}
};