1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

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) if (log_file == NULL)
return; return;
setlinebuf(log_file); setvbuf(log_file, NULL, _IOLBF, 0);
event_set_log_callback(log_event_cb); event_set_log_callback(log_event_cb);
tzset(); tzset();