1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Correct default calculation of menu field widths.

This commit is contained in:
Paul Richards 1995-01-25 06:32:40 +00:00
parent d13fe009f3
commit eef7796c26
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5876

View File

@ -524,10 +524,10 @@ output_field(struct field_list *fields, char *fieldname, FILE *outf)
lim = 0;
for (i=0; i < fields->field.field.menu->no_options - 1; i++) {
fprintf(outf, "\"%s\", ", menu->option);
menu = menu->next;
len = strlen(menu->option);
if (len > lim)
lim = len;
menu = menu->next;
}
if (!fields->field.width)
fields->field.width = lim;