summaryrefslogtreecommitdiff
path: root/coreutils/wc.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-14 06:47:33 +0000
committerMatt Kraai <kraai@debian.org>2000-07-14 06:47:33 +0000
commitb870af09ae1892ab84dd089529675cc2df533e71 (patch)
treebd904209a7dedf191941bc9cfbb38df33492f664 /coreutils/wc.c
parentd6912c97deb344844163914eb4aa4640cc332580 (diff)
downloadbusybox-b870af09ae1892ab84dd089529675cc2df533e71.tar.gz
Fix argument parsing.
Diffstat (limited to 'coreutils/wc.c')
-rw-r--r--coreutils/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c
index bad03f791..3b0e589b6 100644
--- a/coreutils/wc.c
+++ b/coreutils/wc.c
@@ -154,7 +154,7 @@ int wc_main(int argc, char **argv)
}
wc_file(file, *argv);
} else {
- while (argc-- > 0 && *argv != '\0' && strlen(*argv)) {
+ while (argc-- > 0) {
file = fopen(*argv, "r");
if (file == NULL) {
perror(*argv);