summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenys Vlasenko2010-12-06 12:54:24 +0100
committerDenys Vlasenko2010-12-06 12:54:24 +0100
commit86aa8030470b6978a099194402de0f692c477c79 (patch)
tree3af0ac505e392715d2e19925658ecfcc60084835 /procps
parent31905f94777ae6e7181e9fbcc0cc7c4cf70abfaf (diff)
downloadbusybox-86aa8030470b6978a099194402de0f692c477c79.zip
busybox-86aa8030470b6978a099194402de0f692c477c79.tar.gz
pstree: use stdin for screen size detection
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'procps')
-rw-r--r--procps/pstree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/pstree.c b/procps/pstree.c
index 54a910f..180d093 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");