mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/util: Fix log corruption on Windows.
This commit is contained in:
parent
dd6b0debd0
commit
e79a13f0ac
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue