diff options
Diffstat (limited to 'procps/ps.c')
-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--; |