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

pull/1/head
millert 2014-11-26 18:34:51 +00:00
parent e0929262db
commit a3612a5472
1 changed files with 1 additions and 1 deletions

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();