summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-08-07 14:53:14 +0000
committernjl <njl@FreeBSD.org>2003-08-07 14:53:14 +0000
commitb6d11e962f7fb3829a2c07c2aef20e3919235cb9 (patch)
tree76f8bc9791c5e4c5b3148991e44b28ce4060c414 /sys/boot
parentaa161987499450fe7b8db10641ba5eca21a46aad (diff)
downloadFreeBSD-src-b6d11e962f7fb3829a2c07c2aef20e3919235cb9.zip
FreeBSD-src-b6d11e962f7fb3829a2c07c2aef20e3919235cb9.tar.gz
Null terminate the OEM hint. This rids my laptop of the smiley face that
would follow the 6 valid chars of the table entry.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/libi386/biosacpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/i386/libi386/biosacpi.c b/sys/boot/i386/libi386/biosacpi.c
index a9d8ecb..e247c24 100644
--- a/sys/boot/i386/libi386/biosacpi.c
+++ b/sys/boot/i386/libi386/biosacpi.c
@@ -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);
OpenPOWER on IntegriCloud