argc has already been decremented
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 3 Oct 2003 07:51:30 +0000 (07:51 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 3 Oct 2003 07:51:30 +0000 (07:51 -0000)
applets/busybox.c

index 0acb428..13b9f6f 100644 (file)
@@ -160,8 +160,9 @@ int busybox_main(int argc, char **argv)
 
        /* Flag that we've been here already */
        been_there_done_that = 1;
-       
-       return (main(argc-1, argv+1));
+
+       /* Move the command line down a notch */
+       return (main(argc, argv+1));
 }
 
 /*