diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-20 17:01:14 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-20 17:01:14 +0000 |
commit | b32502da83ff7e7241a4584c88f3a35859dfeeda (patch) | |
tree | 7dcdaf2b3940b86ca74f185cdb5dedfdc385c8d2 /procps | |
parent | 568d8c9a5cb05a595b4201198fd3c780920586dc (diff) | |
download | busybox-w32-1_5_1.tar.gz busybox-w32-1_5_1.tar.bz2 busybox-w32-1_5_1.zip |
applied post-1.5.0 fixes1_5_1
Diffstat (limited to 'procps')
-rw-r--r-- | procps/ps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c index c1cb64397..2be0b3605 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -262,7 +262,9 @@ int ps_main(int argc, char **argv) | |||
262 | parse_o(default_o); | 262 | parse_o(default_o); |
263 | post_process(); | 263 | post_process(); |
264 | 264 | ||
265 | terminal_width = INT_MAX; | 265 | /* Was INT_MAX, but some libc's go belly up with printf("%.*s") |
266 | * and such large widths */ | ||
267 | terminal_width = 30000; | ||
266 | if (isatty(1)) { | 268 | if (isatty(1)) { |
267 | get_terminal_width_height(1, &terminal_width, NULL); | 269 | get_terminal_width_height(1, &terminal_width, NULL); |
268 | terminal_width--; | 270 | terminal_width--; |