X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=disk%2Fpart_efi.c;h=359b55a818055304cae8170c806df693c958ae31;hb=f9b65c76b4828efbf8093c6b02bee5af0045b98b;hp=3e026697dbe9911002db37635fa610dc75338ba5;hpb=b4944e25744aa42dc23c6912e1cd4ccad270c4e0;p=platform%2Fkernel%2Fu-boot.git diff --git a/disk/part_efi.c b/disk/part_efi.c index 3e02669..359b55a 100644 --- a/disk/part_efi.c +++ b/disk/part_efi.c @@ -670,9 +670,18 @@ err: return ret; } -static void gpt_convert_efi_name_to_char(char *s, efi_char16_t *es, int n) +/** + * gpt_convert_efi_name_to_char() - convert u16 string to char string + * + * TODO: this conversion only supports ANSI characters + * + * @s: target buffer + * @es: u16 string to be converted + * @n: size of target buffer + */ +static void gpt_convert_efi_name_to_char(char *s, void *es, int n) { - char *ess = (char *)es; + char *ess = es; int i, j; memset(s, '\0', n);