X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0131687bb53c2d10fec2af13f74ccc458698053a..399b60a0ad232265cd74ce8bf6a53a1f2cc57ff2:/src/common/log.cpp?ds=sidebyside diff --git a/src/common/log.cpp b/src/common/log.cpp index e187622915..0a44516706 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -181,16 +181,16 @@ void wxLogVerbose(const wxChar *szFormat, ...) wxChar *p = s_szBuf; size_t len = WXSIZEOF(s_szBuf); strncpy(s_szBuf, _T("("), len); - len -= 2; // strlen("(") - p += 2; + len -= 1; // strlen("(") + p += 1; strncat(p, mask, len); size_t lenMask = wxStrlen(mask); len -= lenMask; p += lenMask; - strncat(p, _T("): "), len); - len -= 3; - p += 3; + strncat(p, _T(") "), len); + len -= 2; + p += 2; va_list argptr; va_start(argptr, szFormat); @@ -371,7 +371,7 @@ void wxLog::DoLog(wxLogLevel level, const wxChar *szString, time_t t) #ifdef __WXDEBUG__ { wxString msg = level == wxLOG_Trace ? wxT("Trace: ") - : wxT("Debug: "), + : wxT("Debug: "); msg << szString; DoLogString(msg, t); }