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
This commit is contained in:
Shawn Hoffman 2009-04-24 00:02:18 +00:00
parent c525563d77
commit 6ed52d0d93
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}