Null terminate the OEM hint. This rids my laptop of the smiley face that
would follow the 6 valid chars of the table entry.
This commit is contained in:
parent
ea03990629
commit
c53bcc89ca
@ -66,6 +66,7 @@ biosacpi_detect(void)
|
||||
sprintf(buf, "%d", revision);
|
||||
setenv("hint.acpi.0.revision", buf, 1);
|
||||
sprintf(buf, "%6s", rsdp->OemId);
|
||||
buf[6] = '\0';
|
||||
setenv("hint.acpi.0.oem", buf, 1);
|
||||
sprintf(buf, "0x%08x", rsdp->RsdtPhysicalAddress);
|
||||
setenv("hint.acpi.0.rsdt", buf, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user