[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] Re: busybox-cvs Digest, Vol 12, Issue 18
From:       Erik Andersen <andersen () codepoet ! org>
Date:       2004-03-27 10:02:54
Message-ID: 20040327100253.GB8575 () codepoet ! org
[Download RAW message or body]

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--


_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic