Index: src/libchcore/log.cpp =================================================================== diff -u -rd31522d13d561cfe21dc047a5f7327ad4136084d -rb1463aec0ea059d60c297e84eed664b3df3ed0a6 --- src/libchcore/log.cpp (.../log.cpp) (revision d31522d13d561cfe21dc047a5f7327ad4136084d) +++ src/libchcore/log.cpp (.../log.cpp) (revision b1463aec0ea059d60c297e84eed664b3df3ed0a6) @@ -329,7 +329,7 @@ if (!m_pszPath) return; - if (iType < m_iLogLevel || iType < 0 || iType >= sizeof(__logtype_str)) + if (iType < m_iLogLevel || iType < 0 || iType >= (sizeof(__logtype_str) / sizeof(wchar_t*))) return; // log time