diff options
author | Tom Rini <trini@konsulko.com> | 2023-11-01 12:52:32 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-01 12:52:32 -0400 |
commit | 46ff7dd09653e9fb32440fcafb59d54096a1ff52 (patch) | |
tree | 2dde0f46bd882ebe4aeba8b033972ff19b932343 /boot/bootflow.c | |
parent | a803f87202aa48974bdff4d8100464a8288931e4 (diff) | |
parent | a831d1137845732db68ac80edf15bfe4a68d0c8f (diff) |
Merge branch '2023-11-01-bootstd-fixes'
- Four patches to address issues with bootstd flows in some cases
Diffstat (limited to 'boot/bootflow.c')
-rw-r--r-- | boot/bootflow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boot/bootflow.c b/boot/bootflow.c index be543c8588c..6922e7e0c4e 100644 --- a/boot/bootflow.c +++ b/boot/bootflow.c @@ -752,7 +752,7 @@ int cmdline_set_arg(char *buf, int maxlen, const char *cmdline, in_quote = false; continue; } - if (*p == '=') { + if (*p == '=' && !arg_end) { arg_end = p; val = p + 1; } else if (*p == '"') { @@ -788,7 +788,8 @@ int cmdline_set_arg(char *buf, int maxlen, const char *cmdline, } /* if this is the target arg, update it */ - if (!strncmp(from, set_arg, arg_end - from)) { + if (arg_end - from == set_arg_len && + !strncmp(from, set_arg, set_arg_len)) { if (!buf) { bool has_quote = val_end[-1] == '"'; |