diff mbox

linux kernel bug report

Message ID BLU108-W25C2EFF190E96A11245BBB9C350@phx.gbl (mailing list archive)
State New, archived
Headers show

Commit Message

d binderman March 8, 2010, 10:29 a.m. UTC
None
diff mbox

Patch


Signed-off-by: David Binderman <dcb314@hotmail.com>

--- drivers/acpi/osl.c.sav	2010-03-08 10:24:02.000000000 +0000
+++ drivers/acpi/osl.c	2010-03-08 10:24:22.000000000 +0000
@@ -1037,6 +1037,7 @@  int __init acpi_osi_setup(char *str)
 		acpi_cmdline_osi_linux(1);	/* enable */
 	} else if (*osi_additional_string == '\0') {
 		strncpy(osi_additional_string, str, OSI_STRING_LENGTH_MAX);
+		str[OSI_STRING_LENGTH_MAX - 1] = 0;
 		printk(KERN_INFO PREFIX "Added _OSI(%s)\n", str);
 	}