From: Dimitris Papastamos Date: Mon, 6 Dec 2010 15:42:17 +0000 (+0000) Subject: ASoC: soc-core: Replace use of strncpy() with strlcpy() X-Git-Tag: v2.6.38-rc1~236^2^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58818a77cd415e2f76607749de5a1ff24e58cefe;p=pandora-kernel.git ASoC: soc-core: Replace use of strncpy() with strlcpy() By using strncpy() if the source string does not have a null byte in the first n bytes, then the destination string is not null-terminated. This can be fixed in a two-step process by manually null-terminating the array after the use of strncpy() or by using strlcpy(). Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed