From 802a85b13d7e84c5d0b5ba402b81e28749c0f94d Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Sat, 29 Dec 2012 00:06:26 +0000 Subject: [PATCH] Add missing enforcement of height restriction after minor adjustment. --- usr.sbin/bsdconfig/share/dialog.subr | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr index c1d83a0f0e65..860ff0474b86 100644 --- a/usr.sbin/bsdconfig/share/dialog.subr +++ b/usr.sbin/bsdconfig/share/dialog.subr @@ -480,6 +480,7 @@ f_xdialog_2inputsbox_size() # Add height for a second inputbox height=$(( $height + 2 )) + [ $height -le $max_height ] || height=$max_height # # Bump width for second initial text (if not already at maximum width).