Commit d0b84173 authored by Linus Torvalds's avatar Linus Torvalds

Revert toshiba_acpi strlcpy'fication as per John Belmonte.

parent 3c6bf5ce
......@@ -108,7 +108,8 @@ snscanf(const char* str, int n, const char* format, ...)
int result;
char* str2 = kmalloc(n + 1, GFP_KERNEL);
if (str2 == 0) return 0;
strlcpy(str2, str, n);
strncpy(str2, str, n);
str2[n] = 0;
va_start(args, format);
result = vsscanf(str2, format, args);
va_end(args);
......
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