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:
Nate Lawson 2003-08-07 14:53:14 +00:00
parent ea03990629
commit c53bcc89ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118604

View File

@ -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);