diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-02 11:47:00 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-15 11:26:21 +0200 |
commit | b27d8e4037a710e0246ce52cb785e6a0a877f92c (patch) | |
tree | 599d304e9928dca340ad56249b028382fae3758f /lib | |
parent | 967407defe8b79bd464984801614373f4ab2f6f9 (diff) | |
download | u-boot-b27d8e4037a710e0246ce52cb785e6a0a877f92c.zip u-boot-b27d8e4037a710e0246ce52cb785e6a0a877f92c.tar.gz u-boot-b27d8e4037a710e0246ce52cb785e6a0a877f92c.tar.bz2 |
efi_loader: EFI_HII_STRING_PROTOCOL.GetString()
Use u16_strsize().
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib')
-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 9f87e95..75ff58a 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; |