summaryrefslogtreecommitdiff
path: root/bin/cat/cat.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-11-04 21:30:14 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-11-04 21:30:14 +0000
commit24a49b9e0a1ec6a532f66fa925116fa92385431a (patch)
treed2cfc1b344928908852403d2c1385bd86fb295c3 /bin/cat/cat.c
parentfe653f86851f935866694a7f26effb787b99c01b (diff)
replace setbuf with setvbuf, from Frederic Nowak
Diffstat (limited to 'bin/cat/cat.c')
-rw-r--r--bin/cat/cat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index 5acecbef5ed..a663dec5ef4 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cat.c,v 1.23 2015/10/09 01:37:06 deraadt Exp $ */
+/* $OpenBSD: cat.c,v 1.24 2015/11/04 21:28:01 tedu Exp $ */
/* $NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $ */
/*
@@ -87,7 +87,7 @@ main(int argc, char *argv[])
tflag = vflag = 1; /* -t implies -v */
break;
case 'u':
- setbuf(stdout, NULL);
+ setvbuf(stdout, NULL, _IONBF, 0);
break;
case 'v':
vflag = 1;