git: bf7ec3f9a9fc - stable/13 - stand: Parse all arguments passed by UEFI

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Wed, 05 Oct 2022 11:48:36 UTC
The branch stable/13 has been updated by grembo (ports committer):

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

commit bf7ec3f9a9fcbd78bd0817693ba903c458a6e46f
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2022-09-05 15:56:11 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2022-10-05 11:46:39 +0000

    stand: Parse all arguments passed by UEFI
    
    Approved by:    imp
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D36457
    
    (cherry picked from commit 2b3543dbb1b3fa7c2280d71c017e3e0304e77d54)
---
 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 eb143989190d..e5f7b7820b4f 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -719,7 +719,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);
 	}