diff options
author | Heinrich Schuchardt | 2019-07-14 17:28:49 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2019-07-16 22:17:22 +0000 |
commit | 317068b8b6b15ad38f7aa1019310e41764c80e5b (patch) | |
tree | aff1250e1e834310ba23ba7130e21eab87950997 /include/charset.h | |
parent | ade317a281652354cb3d86d40a8c012b32f28497 (diff) |
efi_loader: support unaligned u16 strings
Allow unaligned u16 strings as arguments to u16_strdup() and u16_strlen().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/charset.h')
-rw-r--r-- | include/charset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/charset.h b/include/charset.h index 4f7ae8fafdf..020f8a90df0 100644 --- a/include/charset.h +++ b/include/charset.h @@ -178,7 +178,7 @@ s32 utf_to_upper(const s32 code); * ReturnValue: number of non-zero words. * This is not the number of utf-16 letters! */ -size_t u16_strlen(const u16 *in); +size_t u16_strlen(const void *in); /** * u16_strlen - count non-zero words @@ -214,7 +214,7 @@ u16 *u16_strcpy(u16 *dest, const u16 *src); * @src: source buffer (null terminated) * Return: allocated new buffer on success, NULL on failure */ -u16 *u16_strdup(const u16 *src); +u16 *u16_strdup(const void *src); /** * utf16_to_utf8() - Convert an utf16 string to utf8 |