]> wimlib.net Git - wimlib/commitdiff
wimlib_vmsg(): fflush stderr
authorEric Biggers <ebiggers3@gmail.com>
Thu, 25 Apr 2013 03:48:12 +0000 (22:48 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 25 Apr 2013 03:48:12 +0000 (22:48 -0500)
src/util.c

index 30f2296bb5a251c74baff71b2374dea7ca86fc2f..4733ba335644507b1cbd1039a6f8c0cb84290350 100644 (file)
@@ -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];