From cc6d18c91fa7e161e8ca1aad61ed9b2317dcfeee Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 25 Jan 2002 06:11:17 +0000 Subject: complain about extra arguments (#54681, ) --- src/netreport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/netreport.c b/src/netreport.c index cceedc3a..4ed2a861 100644 --- a/src/netreport.c +++ b/src/netreport.c @@ -26,7 +26,7 @@ int main(int argc, char ** argv) { } if (argc > 1) { - if (strcmp(argv[1], "-r") == 0) { + if (argc == 2 && strcmp(argv[1], "-r") == 0) { action = DEL; } else { usage(); -- cgit v1.2.1