pstree: use stdin for screen size detection
authorDenys Vlasenko <dvlasenk@redhat.com>
Mon, 6 Dec 2010 11:54:24 +0000 (12:54 +0100)
committerDenys Vlasenko <dvlasenk@redhat.com>
Mon, 6 Dec 2010 11:54:24 +0000 (12:54 +0100)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
procps/pstree.c

index 54a910f76f47da762e2acfbcde83b897a7e4aea3..180d0939a6442a558ec9e6423bbe27c0bed4740d 100644 (file)
@@ -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");