diff options
Diffstat (limited to 'src/acpi')
-rw-r--r-- | src/acpi/acpigen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index ea3ef200a3..b2db19d249 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -185,7 +185,7 @@ void acpigen_write_name_unicode(const char *name, const char *string) acpigen_write_name(name); acpigen_emit_byte(BUFFER_OP); acpigen_write_len_f(); - acpigen_write_integer(len); + acpigen_write_integer(2 * len); for (size_t i = 0; i < len; i++) { const signed char c = string[i]; /* Simple ASCII to UTF-16 conversion, replace non ASCII characters */ |