diff options
Diffstat (limited to 'usr.bin/split/split.c')
-rw-r--r-- | usr.bin/split/split.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c index 698f5c29a8c65..f54916f8d3054 100644 --- a/usr.bin/split/split.c +++ b/usr.bin/split/split.c @@ -77,7 +77,7 @@ main(argc, argv) ifd = 0; break; case 'b': /* byte count split */ - if (numlines) + if (numlines || ((argc-1) <= cnt)) usage(); if (!argv[cnt][2]) bytecnt = atol(argv[++cnt]); |