From c53bcc89cae305caab02a93c16a486c028c7475a Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Thu, 7 Aug 2003 14:53:14 +0000 Subject: [PATCH] Null terminate the OEM hint. This rids my laptop of the smiley face that would follow the 6 valid chars of the table entry. --- sys/boot/i386/libi386/biosacpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/boot/i386/libi386/biosacpi.c b/sys/boot/i386/libi386/biosacpi.c index a9d8ecbaf795..e247c2486a1d 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);