Commit 6e430522 authored by Andy Grover's avatar Andy Grover

ACPI: toshiba_acpi update (John Belmonte)

parent f2307772
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
* *
*/ */
#define TOSHIBA_ACPI_VERSION "0.15" #define TOSHIBA_ACPI_VERSION "0.16"
#define PROC_INTERFACE_VERSION 1 #define PROC_INTERFACE_VERSION 1
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -108,6 +108,7 @@ snscanf(const char* str, int n, const char* format, ...) ...@@ -108,6 +108,7 @@ snscanf(const char* str, int n, const char* format, ...)
int result; int result;
char* str2 = kmalloc(n + 1, GFP_KERNEL); char* str2 = kmalloc(n + 1, GFP_KERNEL);
if (str2 == 0) return 0; if (str2 == 0) return 0;
/* NOTE: don't even _think_ about replacing this with strlcpy */
strncpy(str2, str, n); strncpy(str2, str, n);
str2[n] = 0; str2[n] = 0;
va_start(args, format); va_start(args, format);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment