From 9a1593501cb30e36ea7109680cab368f9425000d Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 30 May 2016 11:43:04 +0200 Subject: memdebug: fix MSVC crash with -DMEMDEBUG_LOG_SYNC Fixes #828 --- lib/memdebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/memdebug.c') diff --git a/lib/memdebug.c b/lib/memdebug.c index 1618bbaf3..ccbf461be 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 } } -- cgit v1.2.3