mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
fbb3ea806f
commit
1dde0d57a5
7 changed files with 27 additions and 23 deletions
|
@ -60,7 +60,7 @@ static void parse_load_option(struct load_option *lo, void *ptr)
|
|||
ptr += sizeof(u16);
|
||||
|
||||
lo->label = ptr;
|
||||
ptr += (utf16_strlen(lo->label) + 1) * 2;
|
||||
ptr += (u16_strlen(lo->label) + 1) * 2;
|
||||
|
||||
lo->file_path = ptr;
|
||||
ptr += lo->file_path_length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue