Skip to content

Commit

Permalink
efi_loader: EFI_HII_STRING_PROTOCOL.GetString()
Browse files Browse the repository at this point in the history
Use u16_strsize().

Signed-off-by: Heinrich Schuchardt <[email protected]>
  • Loading branch information
xypron committed Apr 15, 2022
1 parent 967407d commit b27d8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/efi_loader/efi_hii.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b27d8e4

Please sign in to comment.