[alsa-devel] [PATCH] ASoC: soc-core: Replace use of strncpy() with strlcpy()
broonie at opensource.wolfsonmicro.com
Mon Dec 6 20:16:17 CET 2010
On Mon, Dec 06, 2010 at 03:42:17PM +0000, Dimitris Papastamos wrote:
> 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().
More information about the Alsa-devel