diff options
author | Heinrich Schuchardt | 2022-04-02 11:47:00 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2022-04-15 11:26:21 +0200 |
commit | b27d8e4037a710e0246ce52cb785e6a0a877f92c (patch) | |
tree | 599d304e9928dca340ad56249b028382fae3758f | |
parent | 967407defe8b79bd464984801614373f4ab2f6f9 (diff) |
efi_loader: EFI_HII_STRING_PROTOCOL.GetString()
Use u16_strsize().
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r-- | lib/efi_loader/efi_hii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_hii.c b/lib/efi_loader/efi_hii.c index 9f87e95e32d..75ff58aafa5 100644 --- a/lib/efi_loader/efi_hii.c +++ b/lib/efi_loader/efi_hii.c @@ -900,7 +900,7 @@ get_string(const struct efi_hii_string_protocol *this, str = stbl->strings[string_id - 1].string; if (str) { - len = (u16_strlen(str) + 1) * sizeof(u16); + len = u16_strsize(str); if (*string_size < len) { *string_size = len; |