From 86aa8030470b6978a099194402de0f692c477c79 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 6 Dec 2010 12:54:24 +0100 Subject: pstree: use stdin for screen size detection Signed-off-by: Denys Vlasenko --- procps/pstree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procps/pstree.c b/procps/pstree.c index 54a910f76..180d0939a 100644 --- a/procps/pstree.c +++ b/procps/pstree.c @@ -373,7 +373,7 @@ int pstree_main(int argc UNUSED_PARAM, char **argv) INIT_G(); - get_terminal_width_height(1, &G.output_width, NULL); + get_terminal_width_height(0, &G.output_width, NULL); opt_complementary = "?1"; getopt32(argv, "p"); -- cgit v1.2.3