summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-08-08 20:25:14 +0000
committermillert <millert@openbsd.org>1998-08-08 20:25:14 +0000
commit523f6b94c4cb6ce015ca7aa310970b6c367a045d (patch)
tree5cfe5e01f655b3b7af2a5b8d6c146c7d358af958
parentundo last commit, very broken (diff)
downloadwireguard-openbsd-523f6b94c4cb6ce015ca7aa310970b6c367a045d.tar.xz
wireguard-openbsd-523f6b94c4cb6ce015ca7aa310970b6c367a045d.zip
Don't wrap on an 80 char wide screen in -d mode; Tim Rightnour <root@polaris.garbled.net>
-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;