--- elogd.c_20050219 Sat Feb 19 18:15:09 2005 +++ elogd.c Sat Feb 19 18:25:55 2005 @@ -8169,7 +8169,7 @@ if (format_flags[index] & AFF_SAME_LINE) /* if attribute on same line, do nothing */ rsprintf(""); - else if (index < n_attr - 1 && (format_flags[index + 1] & AFF_SAME_LINE)) { + else if (aindex < n_disp_attr - 1 && (format_flags[attr_index[aindex + 1]] & AFF_SAME_LINE)) { /* if next attribute on same line, start a new subtable */ rsprintf(""); subtable = 1; @@ -8469,7 +8469,7 @@ } } - if (index < n_attr - 1 && (format_flags[index + 1] & AFF_SAME_LINE) == 0) { + if (aindex < n_disp_attr - 1 && (format_flags[attr_index[aindex + 1]] & AFF_SAME_LINE) == 0) { /* if next attribute not on same line, close row or subtable */ if (subtable) { rsprintf("
\n"); @@ -8479,7 +8479,7 @@ } /* if last attribute, close row or subtable */ - if (index == n_attr - 1) { + if (aindex == n_disp_attr - 1) { if (subtable) { rsprintf("\n"); subtable = 0;