From: Rob Landley Date: Tue, 14 Feb 2006 07:33:45 +0000 (-0000) Subject: Fix off by one error. (I know I had a reason for doing that, but I have _no_ X-Git-Tag: 1_1_0~224 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d05981eaf18655f30a1b8cc1cd2c3984436ac227;p=oweals%2Fbusybox.git Fix off by one error. (I know I had a reason for doing that, but I have _no_ idea what it was...) --- diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index bcc4443ab..1ba374076 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c @@ -118,6 +118,6 @@ int switch_root_main(int argc, char *argv[]) } // Exec real init. (This is why we must be pid 1.) - execv(argv[optind],argv+optind+1); + execv(argv[optind],argv+optind); bb_error_msg_and_die("Bad init '%s'",argv[optind]); }