summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-04-24 00:02:18 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-04-24 00:02:18 +0000
commit6ed52d0d93fc207cfc26c6090597f76a25766cbe (patch)
tree25a7bbb02f80cd61c0751037ab16f2296aad713f /Source/Core/Common
parentc525563d77d22efe104665b74617c609bcce2532 (diff)
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
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/LogManager.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}