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).
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to