From fac10d7c59f7db0facd5fb94de273310b9ec86e6 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Mon, 7 Feb 2000 05:29:42 +0000 Subject: A few minor updates. ;-) Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik --- coreutils/length.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/length.c') diff --git a/coreutils/length.c b/coreutils/length.c index 46242b5..2c83cdf 100644 --- a/coreutils/length.c +++ b/coreutils/length.c @@ -6,7 +6,7 @@ extern int length_main(int argc, char * * argv) { - if ( **(argv+1) == '-' ) { + if ( argc != 2 || **(argv+1) == '-' ) { usage("length string\n"); } printf("%d\n", strlen(argv[1])); -- cgit v1.1