summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>2003-05-13 19:57:02 +0000
committerpjanzen <pjanzen@openbsd.org>2003-05-13 19:57:02 +0000
commit9d9fab4c9ec78c705994513d10e30cf18f8746f8 (patch)
tree119bd3d3b9912f24b19953494c633abc04c67a06
parenttypos from Jean-Francois Brousseau; (diff)
downloadwireguard-openbsd-9d9fab4c9ec78c705994513d10e30cf18f8746f8.tar.xz
wireguard-openbsd-9d9fab4c9ec78c705994513d10e30cf18f8746f8.zip
Don't reformat output beyond a minimum terminal width (60).
millert@ ok
-rw-r--r--usr.sbin/lpr/common_source/displayq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c
index 2c0541b0d25..2953279673c 100644
--- a/usr.sbin/lpr/common_source/displayq.c
+++ b/usr.sbin/lpr/common_source/displayq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: displayq.c,v 1.24 2003/05/12 20:53:22 pjanzen Exp $ */
+/* $OpenBSD: displayq.c,v 1.25 2003/05/13 19:57:02 pjanzen Exp $ */
/* $NetBSD: displayq.c,v 1.21 2001/08/30 00:51:50 itojun Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static const char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95";
#else
-static const char rcsid[] = "$OpenBSD: displayq.c,v 1.24 2003/05/12 20:53:22 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: displayq.c,v 1.25 2003/05/13 19:57:02 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -113,6 +113,8 @@ displayq(int format)
win.ws_col > 0)
termwidth = win.ws_col;
}
+ if (termwidth < 60)
+ termwidth = 60;
lflag = format;
totsize = 0;