From 87836fae536b056cde1e84904a63ace9f8b7f707 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 24 Apr 2013 22:48:12 -0500 Subject: [PATCH 1/1] wimlib_vmsg(): fflush stderr --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 30f2296b..4733ba33 100644 --- a/src/util.c +++ b/src/util.c @@ -158,6 +158,7 @@ wimlib_vmsg(const tchar *tag, const tchar *format, tfprintf(stderr, T(": %"TS), buf); } tputc(T('\n'), stderr); + fflush(stderr); errno = errno_save; #ifndef DEBUG } @@ -217,7 +218,6 @@ wimlib_warning_with_errno(const tchar *format, ...) void wimlib_debug(const tchar *file, int line, const char *func, const tchar *format, ...) { - va_list va; tchar buf[tstrlen(file) + strlen(func) + 30]; -- 2.43.0