diff --git a/drivers/pci/pci-label.c b/drivers/pci/pci-label.c index c32f3b7540e872597e8d286238bbf08bfacb0d08..76b381cf70b27fe1496f05dd3bd32c153737c42f 100644 --- a/drivers/pci/pci-label.c +++ b/drivers/pci/pci-label.c @@ -145,7 +145,7 @@ static void dsm_label_utf16s_to_utf8s(union acpi_object *obj, char *buf) len = utf16s_to_utf8s((const wchar_t *)obj->buffer.pointer, obj->buffer.length, UTF16_LITTLE_ENDIAN, - buf, PAGE_SIZE); + buf, PAGE_SIZE - 1); buf[len] = '\n'; }