mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +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
@@ -114,7 +114,7 @@ static efi_status_t EFIAPI efi_cout_output_string(
|
||||
|
||||
EFI_ENTRY("%p, %p", this, string);
|
||||
|
||||
unsigned int n16 = utf16_strlen(string);
|
||||
unsigned int n16 = u16_strlen(string);
|
||||
char buf[MAX_UTF8_PER_UTF16 * n16 + 1];
|
||||
u16 *p;
|
||||
|
||||
|
Reference in New Issue
Block a user