ui/ncurses: Fix pad size check
[petitboot] / ui / ncurses / nc-config.c
index ee68a6fe622d4d822dc01eb661002fdb07581bc0..ca8c44c0e6bfb74a3208f251e83cdd135fb3eb01 100644 (file)
@@ -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);