fix segfault if user only specifies 1 file

This commit is contained in:
Mike Frysinger 2005-05-12 22:36:32 +00:00
parent 4d149205c3
commit 3ba93c0438

View File

@ -142,7 +142,7 @@ int comm_main (int argc, char **argv)
opt = bb_getopt_ulflags(argc, argv, "123");
if ((opt & 0x80000000UL) || (optind == argc))
if (optind != argc + 2)
bb_show_usage();
if (opt & COMM_OPT_1)