[BusyBox] Re: busybox-cvs Digest, Vol 12, Issue 18

Erik Andersen andersen at codepoet.org
Sat Mar 27 10:02:54 UTC 2004


On Wed Mar 24, 2004 at 05:25:38PM +0300, Vladimir N. Oleynik wrote:
> 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).

Good point.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the busybox mailing list