a/util: Fix log corruption on Windows.

This commit is contained in:
Ryan Pavlik 2022-05-05 10:26:18 -05:00 committed by Jakob Bornecrantz
parent dd6b0debd0
commit e79a13f0ac

View file

@ -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);
}