From 6ed52d0d93fc207cfc26c6090597f76a25766cbe Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Fri, 24 Apr 2009 00:02:18 +0000 Subject: [PATCH] get rid of annoying extra null byte at the end of log lines written to file. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3057 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/LogManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/LogManager.cpp b/Source/Core/Common/Src/LogManager.cpp index 15540a267b..f2a47334e0 100644 --- a/Source/Core/Common/Src/LogManager.cpp +++ b/Source/Core/Common/Src/LogManager.cpp @@ -170,6 +170,6 @@ void FileLogListener::Log(LogTypes::LOG_LEVELS, const char *msg) { if (!m_enable || !isValid()) return; - fwrite(msg, (strlen(msg) + 1) * sizeof(char), 1, m_logfile); + fwrite(msg, strlen(msg) * sizeof(char), 1, m_logfile); fflush(m_logfile); }