From: Jeremy Kerr Date: Wed, 18 Dec 2013 02:31:10 +0000 (+0800) Subject: ui/ncurses/nc-config: expand mask field X-Git-Tag: v1.0.0~282 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=b2ba8efeb3ea00a9b404f403549caa692fe34cc7 ui/ncurses/nc-config: expand mask field This makes it obvious if there's more than two characters in the field. Signed-off-by: Jeremy Kerr --- diff --git a/ui/ncurses/nc-config.c b/ui/ncurses/nc-config.c index 0b42e4c..78e8e9e 100644 --- a/ui/ncurses/nc-config.c +++ b/ui/ncurses/nc-config.c @@ -508,7 +508,7 @@ static void config_screen_setup_widgets(struct config_screen *screen, screen->widgets.ip_addr_l = widget_new_label(set, 0, 0, "IP/mask:"); screen->widgets.ip_addr_f = widget_new_textbox(set, 0, 0, 16, ip); screen->widgets.ip_mask_l = widget_new_label(set, 0, 0, "/"); - screen->widgets.ip_mask_f = widget_new_textbox(set, 0, 0, 3, mask); + screen->widgets.ip_mask_f = widget_new_textbox(set, 0, 0, 4, mask); screen->widgets.ip_addr_mask_help_l = widget_new_label(set, 0, 0, "(eg. 192.168.0.10 / 24)");