summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/share
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2012-12-29 00:06:26 +0000
committerdteske <dteske@FreeBSD.org>2012-12-29 00:06:26 +0000
commitd79ae350987bcf742fcc8a6c01e6b0eeabb41c6d (patch)
treee676e8d9d3f8726eb21f1b9cef7ed8cb734c368c /usr.sbin/bsdconfig/share
parent7b627c05863b0c5f7a332fd735c6894d1c11c38c (diff)
downloadFreeBSD-src-d79ae350987bcf742fcc8a6c01e6b0eeabb41c6d.zip
FreeBSD-src-d79ae350987bcf742fcc8a6c01e6b0eeabb41c6d.tar.gz
Add missing enforcement of height restriction after minor adjustment.
Diffstat (limited to 'usr.sbin/bsdconfig/share')
-rw-r--r--usr.sbin/bsdconfig/share/dialog.subr1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr
index c1d83a0..860ff04 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).
OpenPOWER on IntegriCloud