diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2003-05-13 19:57:03 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2003-05-13 19:57:03 +0000 |
commit | 8129993d1fd31bc467b8cde015cbdad7a33fb1a1 (patch) | |
tree | cef85a62d0f4084241f0d0196e14f11f7a21975b /usr.sbin/lpr/common_source | |
parent | c3a2ea6375f0d0ee0c89205c8a439794258d88bd (diff) |
Don't reformat output beyond a minimum terminal width (60).
millert@ ok
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r-- | usr.sbin/lpr/common_source/displayq.c | 6 |
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; |