summaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@yahoo.no>2016-05-30 11:43:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-05-30 11:43:04 +0200
commit9a1593501cb30e36ea7109680cab368f9425000d (patch)
tree3b3d7c049e350640f1a2867b087db6a3bade5464 /lib/memdebug.c
parent27c86c887194088551577832d284237678e837b4 (diff)
downloadcurl-9a1593501cb30e36ea7109680cab368f9425000d.tar.gz
memdebug: fix MSVC crash with -DMEMDEBUG_LOG_SYNC
Fixes #828
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c2
1 files changed, 1 insertions, 1 deletions
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
}
}