mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
efi_loader: EFI_HII_STRING_PROTOCOL.GetString()
Use u16_strsize(). Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
967407defe
commit
b27d8e4037
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue