summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-08-08 20:25:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-08-08 20:25:15 +0000
commitefd42998de4ec5389afc347aa2ba146cd8a1ab04 (patch)
treee50782b44c42f4c0be98df126f943c90125e43eb /usr.bin
parent350fd2f311f124c59703b46c10296f4249fb399a (diff)
Don't wrap on an 80 char wide screen in -d mode; Tim Rightnour <root@polaris.garbled.net>
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rup/rup.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c
index 8333e7bb068..df058b1ef1b 100644
--- a/usr.bin/rup/rup.c
+++ b/usr.bin/rup/rup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rup.c,v 1.8 1997/07/09 04:05:07 deraadt Exp $ */
+/* $OpenBSD: rup.c,v 1.9 1998/08/08 20:25:14 millert Exp $ */
/*-
* Copyright (c) 1993, John Brezak
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: rup.c,v 1.8 1997/07/09 04:05:07 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rup.c,v 1.9 1998/08/08 20:25:14 millert Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -196,7 +196,10 @@ print_rup_data(host, host_stat)
char days_buf[16];
char hours_buf[16];
- printf("%-*.*s", HOST_WIDTH, HOST_WIDTH, host);
+ if (printtime)
+ printf("%-*.*s", HOST_WIDTH-3, HOST_WIDTH-3, host);
+ else
+ printf("%-*.*s", HOST_WIDTH, HOST_WIDTH, host);
tmp_time = localtime((time_t *)&host_stat->curtime.tv_sec);
host_time = *tmp_time;