commit | b27d8e4037a710e0246ce52cb785e6a0a877f92c | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sat Apr 02 11:47:00 2022 +0200 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Fri Apr 15 11:26:21 2022 +0200 |
tree | 599d304e9928dca340ad56249b028382fae3758f | |
parent | 967407defe8b79bd464984801614373f4ab2f6f9 [diff] [blame] |
efi_loader: EFI_HII_STRING_PROTOCOL.GetString() Use u16_strsize(). Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
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 @@ 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;