From 104961b889654c2685ee7d3cba19a6b143548d94 Mon Sep 17 00:00:00 2001 From: Peter Bell Date: Fri, 15 May 2020 19:10:43 +0100 Subject: sizeof(char) --- src/LoggerListeners.cpp | 4 ++-- 1 file 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); } }; -- cgit v1.2.3