busybox-1.5.0-ps.patch 422 B

12345678910111213
  1. --- busybox-1.5.0/procps/ps.c Thu Mar 22 22:21:37 2007
  2. +++ busybox-1.5.0-ps/procps/ps.c Wed Mar 28 23:57:34 2007
  3. @@ -262,7 +262,9 @@
  4. parse_o(default_o);
  5. post_process();
  6. - terminal_width = INT_MAX;
  7. + /* Was INT_MAX, but some libc's go belly up with printf("%.*s")
  8. + * and such large widths */
  9. + terminal_width = 30000;
  10. if (isatty(1)) {
  11. get_terminal_width_height(1, &terminal_width, NULL);
  12. terminal_width--;