fix argument to get_window_size

This commit is contained in:
Love Hornquist Astrand
2011-05-04 21:50:17 -07:00
parent b1909b2daa
commit 41328aa28e

View File

@@ -608,11 +608,11 @@ TerminalSpeeds(long *input_speed, long *output_speed)
int int
TerminalWindowSize(long *rows, long *cols) TerminalWindowSize(long *rows, long *cols)
{ {
struct winsize ws; int irows, icols;
if (get_window_size (STDIN_FILENO, &ws) == 0) { if (get_window_size(STDIN_FILENO, &irows, &icols) == 0) {
*rows = ws.ws_row; *rows = irows;
*cols = ws.ws_col; *cols = icols;
return 1; return 1;
} else } else
return 0; return 0;