Prefer setvbuf() to setlinebuf() for portability; ok deraadt@

This commit is contained in:
millert 2014-11-26 18:34:51 +00:00
parent e0929262db
commit a3612a5472

2
log.c
View File

@ -45,7 +45,7 @@ log_open(const char *path)
if (log_file == NULL)
return;
setlinebuf(log_file);
setvbuf(log_file, NULL, _IOLBF, 0);
event_set_log_callback(log_event_cb);
tzset();