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 0acb428f4b1e33e95a48674350d7d26cc64acb36..13b9f6fcbc878609f5eb4e4f8c21d4ce848cda43 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));
 }
 
 /*