summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
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 /usr.sbin/lpr
parentfe653f86851f935866694a7f26effb787b99c01b (diff)
replace setbuf with setvbuf, from Frederic Nowak
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lptest/lptest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lptest/lptest.c b/usr.sbin/lpr/lptest/lptest.c
index a8970c55071..b91214d31dc 100644
--- a/usr.sbin/lpr/lptest/lptest.c
+++ b/usr.sbin/lpr/lptest/lptest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lptest.c,v 1.8 2009/10/27 23:59:52 deraadt Exp $ */
+/* $OpenBSD: lptest.c,v 1.9 2015/11/04 21:27:03 tedu Exp $ */
/* $NetBSD: lptest.c,v 1.6 1996/12/09 09:57:50 mrg Exp $ */
/*
@@ -44,7 +44,7 @@ main(int argc, char **argv)
int i, j, fc, nc;
char outbuf[BUFSIZ];
- setbuf(stdout, outbuf);
+ setvbuf(stdout, outbuf, _IOFBF, sizeof outbuf);
if (argc >= 2)
len = atoi(argv[1]);
else