summaryrefslogtreecommitdiff
path: root/libbb/print_numbered_lines.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/print_numbered_lines.c')
-rw-r--r--libbb/print_numbered_lines.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/print_numbered_lines.c b/libbb/print_numbered_lines.c
index d6459d7..4758068 100644
--- a/libbb/print_numbered_lines.c
+++ b/libbb/print_numbered_lines.c
@@ -22,10 +22,11 @@ int FAST_FUNC print_numbered_lines(struct number_state *ns, const char *filename
if (ns->all
|| (ns->nonempty && line[0])
) {
- printf("%*u%s%s\n", ns->width, N, ns->sep, line);
+ printf("%*u%s", ns->width, N, ns->sep);
N += ns->inc;
} else if (ns->empty_str)
fputs(ns->empty_str, stdout);
+ puts(line);
free(line);
}
ns->start = N;