From: Chen Gang Date: Mon, 8 Apr 2013 03:48:27 +0000 (+0800) Subject: perf: Fix strncpy() use, always make sure it's NUL terminated X-Git-Tag: v3.9-rc7~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c97847d2f0eb77c806e650e04d9bbcf79fa05730;p=pandora-kernel.git perf: Fix strncpy() use, always make sure it's NUL terminated For NUL terminated string, always make sure that there's '\0' at the end. In our case we need a return value, so still use strncpy() and fix up the tail explicitly. (strlcpy() returns the size, not the pointer) Signed-off-by: Chen Gang Cc: a.p.zijlstra@chello.nl Cc: paulus@samba.org Cc: acme@ghostprotocols.net Link: http://lkml.kernel.org/r/51623E0B.7070101@asianux.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed