summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-11-19 13:23:10 +1100
committerJeremy Kerr <jk@ozlabs.org>2013-11-19 14:39:14 +1100
commit6afcd04684c27823afc778f712006e02b7470faf (patch)
tree970e1d24c2a24d8e580b1e96a42eff623508c182
parent22ca5c0c2229b7f392beb23452a53b60c435bd46 (diff)
downloadtalos-petitboot-6afcd04684c27823afc778f712006e02b7470faf.tar.gz
talos-petitboot-6afcd04684c27823afc778f712006e02b7470faf.zip
ui/ncurses: Fix pad size check
We need the y-coord, not x. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-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