From 856be770a66a4d928f13c9d2f401dc1092e5270e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 17 Aug 2007 08:29:48 +0000 Subject: assorted fixes for breakage found by randomconfig --- util-linux/more.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util-linux') diff --git a/util-linux/more.c b/util-linux/more.c index 92ebdfea9..dc5b4c99e 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 -- cgit v1.2.3