From 796d873d95e1be63ece2345d0e985a057210c1b9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 5 Feb 2017 00:44:29 -0600 Subject: Default to width 80 when tty size probe fails (ala serial console). (It was defaulting to 99999 but not FLAG_w, so it tried to _pad_ to 99999.) --- toys/posix/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/posix/ps.c b/toys/posix/ps.c index 33ab4945..a28118fa 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c @@ -1142,7 +1142,7 @@ static void shared_main(void) TT.ticks = sysconf(_SC_CLK_TCK); if (!TT.width) { - TT.width = (toys.which->name[1] == 's') ? 99999 : 80; + TT.width = 80; TT.height = 25; terminal_size(&TT.width, &TT.height); } -- cgit v1.2.3