mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 06:29:00 +01:00
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:
parent
c525563d77
commit
6ed52d0d93
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user