[BusyBox] Re: busybox-cvs Digest, Vol 12, Issue 18
Vladimir N. Oleynik
dzo at simtreas.ru
Wed Mar 24 14:25:38 UTC 2004
Erik,
> --- a/ls.c 15 Mar 2004 08:28:20 -0000 1.107
> +++ b/ls.c 23 Mar 2004 23:15:36 -0000 1.108
> @@ -982,7 +982,7 @@
>
> #ifdef CONFIG_FEATURE_AUTOWIDTH
> /* Obtain the terminal width. */
> - get_terminal_width_height(0, &terminal_width, NULL);
> + get_terminal_width_height(fileno(stdout), &terminal_width, NULL);
I think, may be change to STDOUT_FILENO is more oprimaly.
(ls applet have other 3 place isatty(fileno(stdout)) for change to STDOUT_FILENO
too).
--w
vodz
More information about the busybox
mailing list