From efc0f5e2d7aaf498ebc14179156f7948d306c3fa Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Mon, 22 Apr 2013 06:27:14 +0000 Subject: [PATCH] Proper fix for copy/paste error (first attempt r249756). --- usr.sbin/bsdconfig/share/dialog.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr index b9aa41757ee..f45e3869566 100644 --- a/usr.sbin/bsdconfig/share/dialog.subr +++ b/usr.sbin/bsdconfig/share/dialog.subr @@ -737,9 +737,9 @@ f_dialog_radiolist_size() # Also, calculate the number of rows (not to exceed terminal height). # local longest_tag=0 longest_item=0 - while [ $# -ge 2 ]; do + while [ $# -ge 3 ]; do local tag="$1" item="$2" - shift 2 # tag/item + shift 3 # tag/item/status [ ${#tag} -gt $longest_tag ] && longest_tag=${#tag} [ ${#item} -gt $longest_item ] && longest_item=${#item}