diff options
Diffstat (limited to 'coreutils/length.c')
-rw-r--r-- | coreutils/length.c | 2 |
1 files changed, 1 insertions, 1 deletions
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])); |