summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ncurses/nc-config.c')
-rw-r--r--ui/ncurses/nc-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ncurses/nc-config.c b/ui/ncurses/nc-config.c
index ee68a6f..ca8c44c 100644
--- a/ui/ncurses/nc-config.c
+++ b/ui/ncurses/nc-config.c
@@ -571,7 +571,7 @@ void config_screen_update(struct config_screen *screen,
height = N_FIELDS + 3;
if (sysinfo)
height += sysinfo->n_interfaces;
- if (!screen->pad || getmaxx(screen->pad) < height) {
+ if (!screen->pad || getmaxy(screen->pad) < height) {
if (screen->pad)
delwin(screen->pad);
screen->pad = newpad(height, COLS);
OpenPOWER on IntegriCloud