diff --git a/src/common/log.cpp b/src/common/log.cpp index 35ffb86ba6..c2828ba8f5 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -1092,8 +1092,7 @@ const wxChar *wxSysErrorMsg(unsigned long nErrCode) LocalFree(lpMsgBuf); - // returned string is capitalized and ended with '\r\n' - bad - s_szBuf[0] = (wxChar)wxTolower(s_szBuf[0]); + // returned string is ended with '\r\n' - bad size_t len = wxStrlen(s_szBuf); if ( len >= 2 ) { // truncate string