]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/log.cpp
Improved selection mode handling in wxGrid::SelectBlock
[wxWidgets.git] / src / common / log.cpp
index e187622915c17487a3ac99c188faf01ec469a1f5..0a44516706601ee688aec1259de45885ad99212c 100644 (file)
@@ -181,16 +181,16 @@ void wxLogVerbose(const wxChar *szFormat, ...)
       wxChar *p = s_szBuf;
       size_t len = WXSIZEOF(s_szBuf);
       strncpy(s_szBuf, _T("("), len);
       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, 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);
 
       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: ")
 #ifdef __WXDEBUG__
             {
                 wxString msg = level == wxLOG_Trace ? wxT("Trace: ")
-                                                    : wxT("Debug: "),
+                                                    : wxT("Debug: ");
                 msg << szString;
                 DoLogString(msg, t);
             }
                 msg << szString;
                 DoLogString(msg, t);
             }