]> git.hungrycats.org Git - linux/commit
[PATCH] mconf.c: Honor $LINES and $COLUMNS if TIOCGWINSZ failed
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Wed, 14 Jul 2004 02:59:40 +0000 (19:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 14 Jul 2004 02:59:40 +0000 (19:59 -0700)
commit7b1eb3e7cea007a1d61bc34c53e6d0adde3af3cc
tree0cff7962a355e9f2ffa6cda3ed46cc9fe6c49181
parent8b04e5149cdddd4fdea3b0307b03cecae653874a
[PATCH] mconf.c: Honor $LINES and $COLUMNS if TIOCGWINSZ failed

While reading code, I found this buglet.  If the TIOCGWINSZ fails,
mconf.c assumes 24/80 as screen size, without honoring the LINES and
COLUMNS environment variables.  This is the shorter and IMHO more
correct version.

Signed-off-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
scripts/kconfig/mconf.c