From 10a1fe6169cc0c1868715f5baf752b818cdfdc1c Mon Sep 17 00:00:00 2001 From: "Vladimir N. Oleynik" Date: Mon, 5 Sep 2005 11:25:27 +0000 Subject: remove infinity loop ./busybox --help busybox --- applets/busybox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'applets') diff --git a/applets/busybox.c b/applets/busybox.c index a495650..833e8d3 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -110,8 +110,9 @@ int busybox_main(int argc, char **argv) /* Deal with --help. (Also print help when called with no arguments) */ if (argc==1 || !strcmp(argv[1],"--help") ) { - if (argc>2) run_applet_by_name(bb_applet_name=argv[2], argc, argv); - else { + if (argc>2) { + run_applet_by_name(bb_applet_name=argv[2], 2, argv); + } else { const struct BB_applet *a; int col, output_width; -- cgit v1.1