From: Glenn L McGrath Date: Fri, 3 Oct 2003 07:51:30 +0000 (-0000) Subject: argc has already been decremented X-Git-Tag: 1_00_pre4~147 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a77c781ef9a599ccff0b9736f96ec3b1cc3b50e;p=oweals%2Fbusybox.git argc has already been decremented --- diff --git a/applets/busybox.c b/applets/busybox.c index 0acb428f4..13b9f6fcb 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -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)); } /*