From: Frederic Weisbecker Date: Wed, 14 Oct 2009 18:43:39 +0000 (+0200) Subject: ftrace: Copy ftrace_graph_filter boot param using strlcpy X-Git-Tag: v2.6.33-rc1~400^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06f43d66ec36388056f5c697bf1e67c0e0a1645c;p=pandora-kernel.git ftrace: Copy ftrace_graph_filter boot param using strlcpy We are using strncpy in the wrong way to copy the ftrace_graph_filter boot param because we pass the buffer size instead of the max string size it can contain (buffer size - 1). The end result might not be NULL terminated as we are abusing the max string size. Lets use strlcpy() instead. Reported-by: Li Zefan Signed-off-by: Frederic Weisbecker Cc: Steven Rostedt --- Reading git-diff-tree failed