summaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
authormillert <millert>2014-11-26 18:34:51 +0000
committermillert <millert>2014-11-26 18:34:51 +0000
commita3612a5472ec5ecf1ffbb1c3cdea58d6b709478d (patch)
tree3266f8656b69e83d7b33413d6e8947ed0880ba17 /log.c
parente0929262db947f984964f979a23215c0de75ceb2 (diff)
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index b266d5a9..0f42f66f 100644
--- a/log.c
+++ b/log.c
@@ -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();