summaryrefslogtreecommitdiff
path: root/usr.bin/leave
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/leave')
-rw-r--r--usr.bin/leave/leave.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/leave/leave.c b/usr.bin/leave/leave.c
index 888b648ba90..9bbf6db9a1d 100644
--- a/usr.bin/leave/leave.c
+++ b/usr.bin/leave/leave.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: leave.c,v 1.13 2013/11/26 13:19:07 deraadt Exp $ */
+/* $OpenBSD: leave.c,v 1.14 2014/11/26 18:34:51 millert Exp $ */
/* $NetBSD: leave.c,v 1.4 1995/07/03 16:50:13 phil Exp $ */
/*
@@ -64,7 +64,7 @@ main(int argc, char *argv[])
int plusnow = 0, twentyfour;
char buf[50];
- if (setlinebuf(stdout) != 0)
+ if (setvbuf(stdout, NULL, _IOLBF, 0) != 0)
errx(1, "Cannot set stdout to line buffered.");
if (argc < 2) {