aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-14 10:47:18 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-14 10:47:18 +0200
commit75e90b15482184db83f03c67b53d4220888c6c9d (patch)
tree8307ba71f584715fcad8beb4373f9318e1f9ec13 /libbb
parentcc86b2ad965bff071185edbb77b5a6ea45023e43 (diff)
downloadbusybox-w32-75e90b15482184db83f03c67b53d4220888c6c9d.tar.gz
busybox-w32-75e90b15482184db83f03c67b53d4220888c6c9d.tar.bz2
busybox-w32-75e90b15482184db83f03c67b53d4220888c6c9d.zip
cat: fix "cat -An" ignoring -n; make numbering go througn all files
function old new delta cat_main 418 428 +10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/print_numbered_lines.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/print_numbered_lines.c b/libbb/print_numbered_lines.c
index 702aed1ea..9a8a51440 100644
--- a/libbb/print_numbered_lines.c
+++ b/libbb/print_numbered_lines.c
@@ -24,6 +24,7 @@ void FAST_FUNC print_numbered_lines(struct number_state *ns, const char *filenam
24 fputs(ns->empty_str, stdout); 24 fputs(ns->empty_str, stdout);
25 free(line); 25 free(line);
26 } 26 }
27 ns->start = N;
27 28
28 fclose(fp); 29 fclose(fp);
29} 30}