diff options
author | paul <paul@FreeBSD.org> | 1995-01-25 06:32:40 +0000 |
---|---|---|
committer | paul <paul@FreeBSD.org> | 1995-01-25 06:32:40 +0000 |
commit | cd6576a65db27715c8edbafd3730a58b986d545b (patch) | |
tree | 77ed447de67a9c49b218a6106e47d9df68c0794c /usr.bin | |
parent | 44a98931df653e4f1f1b1f96e2979bec0f497771 (diff) | |
download | FreeBSD-src-cd6576a65db27715c8edbafd3730a58b986d545b.zip FreeBSD-src-cd6576a65db27715c8edbafd3730a58b986d545b.tar.gz |
Correct default calculation of menu field widths.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/fib/parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fib/parser.y b/usr.bin/fib/parser.y index 0c9a72e..b15ba88 100644 --- a/usr.bin/fib/parser.y +++ b/usr.bin/fib/parser.y @@ -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; |