From: Gisle Vanem Date: Mon, 30 May 2016 09:43:04 +0000 (+0200) Subject: memdebug: fix MSVC crash with -DMEMDEBUG_LOG_SYNC X-Git-Tag: curl-7_50_0~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a1593501cb30e36ea7109680cab368f9425000d;p=thirdparty%2Fcurl.git memdebug: fix MSVC crash with -DMEMDEBUG_LOG_SYNC Fixes #828 --- diff --git a/lib/memdebug.c b/lib/memdebug.c index 1618bbaf31..ccbf461be6 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -119,7 +119,7 @@ void curl_memdebug(const char *logname) logfile = stderr; #ifdef MEMDEBUG_LOG_SYNC /* Flush the log file after every line so the log isn't lost in a crash */ - setvbuf(logfile, (char *)NULL, _IOLBF, 0); + setbuf(logfile, (char *)NULL); #endif } }