From 3ba93c04383e8ede9608fa91ed3058db1d213244 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 12 May 2005 22:36:32 +0000 Subject: fix segfault if user only specifies 1 file --- coreutils/comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/comm.c') diff --git a/coreutils/comm.c b/coreutils/comm.c index 6b7b9554c..f390490e2 100644 --- a/coreutils/comm.c +++ b/coreutils/comm.c @@ -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) -- cgit v1.2.3