mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
efi_loader: rename utf16_strlen, utf16_strnlen
The function names utf16_strlen() and utf16_strnlen() are misnomers. The functions do not count utf-16 characters but non-zero words. So let's rename them to u16_strlen and u16_strnlen(). In utf16_dup() avoid assignment in if clause. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
fbb3ea806f
commit
1dde0d57a5
@@ -106,7 +106,7 @@ static efi_status_t efi_to_native(char *native, u16 *variable_name,
|
||||
{
|
||||
size_t len;
|
||||
|
||||
len = utf16_strlen((u16 *)variable_name);
|
||||
len = u16_strlen((u16 *)variable_name);
|
||||
if (len >= MAX_VAR_NAME)
|
||||
return EFI_DEVICE_ERROR;
|
||||
|
||||
|
Reference in New Issue
Block a user