summaryrefslogtreecommitdiff
path: root/util-linux/more.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-08-17 08:29:48 +0000
committerDenis Vlasenko2007-08-17 08:29:48 +0000
commit856be770a66a4d928f13c9d2f401dc1092e5270e (patch)
tree62c6391260ae26ec9a383e72265a4ab3f6894373 /util-linux/more.c
parent7f175ccbc38c0de2423a9554f8ee1663431845d9 (diff)
downloadbusybox-856be770a66a4d928f13c9d2f401dc1092e5270e.zip
busybox-856be770a66a4d928f13c9d2f401dc1092e5270e.tar.gz
assorted fixes for breakage found by randomconfig
Diffstat (limited to 'util-linux/more.c')
-rw-r--r--util-linux/more.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util-linux/more.c b/util-linux/more.c
index 92ebdfe..dc5b4c9 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -154,8 +154,10 @@ int more_main(int argc, char **argv)
/* The user may have resized the terminal.
* Re-read the dimensions. */
+#if ENABLE_FEATURE_USE_TERMIOS
get_terminal_width_height(cin_fileno, &terminal_width, &terminal_height);
terminal_height -= 1;
+#endif
}
/* Crudely convert tabs into spaces, which are