Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2012 00:06:27 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244802 - head/usr.sbin/bsdconfig/share
Message-ID:  <201212290006.qBT06Rba031869@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Sat Dec 29 00:06:26 2012
New Revision: 244802
URL: http://svnweb.freebsd.org/changeset/base/244802

Log:
  Add missing enforcement of height restriction after minor adjustment.

Modified:
  head/usr.sbin/bsdconfig/share/dialog.subr

Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr	Sat Dec 29 00:01:24 2012	(r244801)
+++ head/usr.sbin/bsdconfig/share/dialog.subr	Sat Dec 29 00:06:26 2012	(r244802)
@@ -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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212290006.qBT06Rba031869>