aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/ls.c2
-rw-r--r--coreutils/stty.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index 14c8beaff..c48498858 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -1105,7 +1105,7 @@ int ls_main(int argc UNUSED_PARAM, char **argv)
1105 1105
1106#if ENABLE_FEATURE_AUTOWIDTH 1106#if ENABLE_FEATURE_AUTOWIDTH
1107 /* obtain the terminal width */ 1107 /* obtain the terminal width */
1108 get_terminal_width_height(STDIN_FILENO, &G_terminal_width, NULL); 1108 G_terminal_width = get_terminal_width(STDIN_FILENO);
1109 /* go one less... */ 1109 /* go one less... */
1110 G_terminal_width--; 1110 G_terminal_width--;
1111#endif 1111#endif
diff --git a/coreutils/stty.c b/coreutils/stty.c
index 378a848e7..b63b0b91a 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -1403,7 +1403,7 @@ int stty_main(int argc UNUSED_PARAM, char **argv)
1403 perror_on_device_and_die("%s"); 1403 perror_on_device_and_die("%s");
1404 1404
1405 if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) { 1405 if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) {
1406 get_terminal_width_height(STDOUT_FILENO, &G.max_col, NULL); 1406 G.max_col = get_terminal_width(STDOUT_FILENO);
1407 output_func(&mode, display_all); 1407 output_func(&mode, display_all);
1408 return EXIT_SUCCESS; 1408 return EXIT_SUCCESS;
1409 } 1409 }