From 0d0800f4ac30eabacfc79a5796a0edcebc0fa22a Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Fri, 4 Nov 2005 23:32:05 +0000 Subject: [PATCH] (xdmeta): Fix the printing of the number of rows dumped. Incorrectly included the skipped rows. --- src/lib/commands/xdump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/xdump.c b/src/lib/commands/xdump.c index 4490baf2..afd5f5da 100644 --- a/src/lib/commands/xdump.c +++ b/src/lib/commands/xdump.c @@ -250,6 +250,7 @@ xdmeta(int type) { struct castr *ca = ef_cadef(type); int i; + int n = 0; if (!ca) return RET_SYN; @@ -262,10 +263,11 @@ xdmeta(int type) if (ca[i].ca_flags & NSC_EXTRA) continue; xdflds(mdchr_ca, &ca[i]); + n++; pr("\n"); } - xdftr(i); + xdftr(n); return RET_OK; }