svn commit: r244802 - head/usr.sbin/bsdconfig/share

Devin Teske dteske at FreeBSD.org
Sat Dec 29 00:06:27 UTC 2012


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).


More information about the svn-src-all mailing list