diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-19 00:38:10 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-19 00:38:10 +0000 |
commit | e8419c90f1f3880f96ff335c4ee0bdd7a86ab0c6 (patch) | |
tree | 2d316d993abf38208f190454e84e9da50c31aadd /coreutils/wc.c | |
parent | 5233cd38003724fad3b4355174d367337f5a3d49 (diff) | |
download | busybox-w32-e8419c90f1f3880f96ff335c4ee0bdd7a86ab0c6.tar.gz busybox-w32-e8419c90f1f3880f96ff335c4ee0bdd7a86ab0c6.tar.bz2 busybox-w32-e8419c90f1f3880f96ff335c4ee0bdd7a86ab0c6.zip |
tail: fix "tail -c 20 /dev/huge_disk" (was taking ages)
tail: a few variables renamed
wc: tiny optimization.
Diffstat (limited to 'coreutils/wc.c')
-rw-r--r-- | coreutils/wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c index 291af411f..58ea1c7db 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c | |||
@@ -73,7 +73,7 @@ int wc_main(int argc, char **argv) | |||
73 | { | 73 | { |
74 | FILE *fp; | 74 | FILE *fp; |
75 | const char *s, *arg; | 75 | const char *s, *arg; |
76 | const char *start_fmt = "%9"COUNT_FMT; | 76 | const char *start_fmt = " %9"COUNT_FMT + 1; |
77 | const char *fname_fmt = " %s\n"; | 77 | const char *fname_fmt = " %s\n"; |
78 | COUNT_T *pcounts; | 78 | COUNT_T *pcounts; |
79 | COUNT_T counts[4]; | 79 | COUNT_T counts[4]; |