Skip to content

Commit

Permalink
Fix debug log string (print last symbol)
Browse files Browse the repository at this point in the history
  • Loading branch information
remittor committed Nov 29, 2019
1 parent 24cc0a1 commit 0ca7382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void WcxPrintMsgA(int level, const char * fmt, ...)
int len = _vsnprintf(buf + 9, _countof(buf)-2, fmt, argptr);
if (len < 0)
len = 0;
buf[8 + len] = 0;
buf[9 + len] = 0;
OutputDebugStringA(buf);
va_end(argptr);
}
Expand All @@ -47,7 +47,7 @@ void WcxPrintMsgW(int level, const wchar_t * fmt, ...)
int len = _vsnwprintf(buf + 9, _countof(buf)-2, fmt, argptr);
if (len < 0)
len = 0;
buf[8 + len] = 0;
buf[9 + len] = 0;
OutputDebugStringW(buf);
va_end(argptr);
}
Expand Down

0 comments on commit 0ca7382

Please sign in to comment.