From b5225af344a8508046711f794ac2fb497db0aaa4 Mon Sep 17 00:00:00 2001 From: Tilman Schmidt Date: Thu, 9 Jul 2015 15:22:32 +0200 Subject: ldattach: adapt print_table column width to widest entry The hardcoded column width of 10 in print_table() is not enough, as the currently longest table entry to be printed has 12 characters. Signed-off-by: Tilman Schmidt --- sys-utils/ldattach.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-utils/ldattach.c') diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c index 33c7aa289..5317d22d8 100644 --- a/sys-utils/ldattach.c +++ b/sys-utils/ldattach.c @@ -161,8 +161,8 @@ static void print_table(FILE * out, const struct ld_table *tab) int i; for (t = tab, i = 1; t && t->name; t++, i++) { - fprintf(out, " %-10s", t->name); - if (!(i % 6)) + fprintf(out, " %-12s", t->name); + if (!(i % 5)) fputc('\n', out); } } -- cgit v1.2.3-55-g7522