mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue