summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-04-02 11:47:00 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-04-15 11:26:21 +0200
commitb27d8e4037a710e0246ce52cb785e6a0a877f92c (patch)
tree599d304e9928dca340ad56249b028382fae3758f /lib
parent967407defe8b79bd464984801614373f4ab2f6f9 (diff)
downloadu-boot-b27d8e4037a710e0246ce52cb785e6a0a877f92c.tar.gz
u-boot-b27d8e4037a710e0246ce52cb785e6a0a877f92c.tar.bz2
u-boot-b27d8e4037a710e0246ce52cb785e6a0a877f92c.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_hii.c b/lib/efi_loader/efi_hii.c
index 9f87e95e32..75ff58aafa 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;