diff --git a/src/xrt/auxiliary/util/u_logging.c b/src/xrt/auxiliary/util/u_logging.c index 945e52396..5985d7031 100644 --- a/src/xrt/auxiliary/util/u_logging.c +++ b/src/xrt/auxiliary/util/u_logging.c @@ -132,6 +132,8 @@ u_log(const char *file, int line, const char *func, enum u_logging_level level, printed += vsprintf_s(buf + printed, remainingBuffer - printed, format, args); va_end(args); *(buf + printed) = '\n'; + printed++; + *(buf + printed) = '\0'; OutputDebugStringA(buf); }