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:
njl 2003-08-07 14:53:14 +00:00
parent aa16198749
commit b6d11e962f

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