git: 2b3543dbb1b3 - main - stand: Parse all arguments passed by UEFI

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Tue, 06 Sep 2022 11:39:32 UTC
The branch main has been updated by grembo (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=2b3543dbb1b3fa7c2280d71c017e3e0304e77d54

commit 2b3543dbb1b3fa7c2280d71c017e3e0304e77d54
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2022-09-05 15:56:11 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2022-09-06 11:39:08 +0000

    stand: Parse all arguments passed by UEFI
    
    Approved by:    imp
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D36457
---
 stand/efi/loader/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
index a6fccf9e93c5..5edc06c9e0d5 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -720,7 +720,7 @@ parse_args(int argc, CHAR16 *argv[])
 	 * method is flawed for non-ASCII characters).
 	 */
 	howto = 0;
-	for (i = 1; i < argc; i++) {
+	for (i = 0; i < argc; i++) {
 		cpy16to8(argv[i], var, sizeof(var));
 		howto |= boot_parse_arg(var);
 	}