commit | 450196c119e22268c9176cb7887cceb22bf8e9ff | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Wed Mar 28 21:57:12 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Wed Mar 28 21:57:12 2007 +0000 |
tree | e4a76e61f40840b4dcf2015d55f9ecfa93a8ee23 | |
parent | b7cffd4bedf14770a7096a11a6e46cc497ff37c6 [diff] [blame] |
ps: work around libc bug: printf("%.*s\n", MAX_INT, buffer)
diff --git a/procps/ps.c b/procps/ps.c index c1cb643..2be0b36 100644 --- a/procps/ps.c +++ b/procps/ps.c
@@ -262,7 +262,9 @@ parse_o(default_o); post_process(); - terminal_width = INT_MAX; + /* Was INT_MAX, but some libc's go belly up with printf("%.*s") + * and such large widths */ + terminal_width = 30000; if (isatty(1)) { get_terminal_width_height(1, &terminal_width, NULL); terminal_width--;