hwrng: core - Changed from using strncat to strlcat
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Thu, 16 Oct 2014 21:17:23 +0000 (23:17 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Oct 2014 14:52:27 +0000 (22:52 +0800)
commit61daf055ea42342dea1f7006833bc7cde20eeb34
tree626d28dc2ce071460aa41a2a528a542e287c8a17
parent77ddaba02bb83c4628b4fc1cf36b9ac81b9a7609
hwrng: core - Changed from using strncat to strlcat

The buf is used to hold the list of hwrng devices registered.
The old code ensures we don't walk off the end of buf as we
fill it, but it's unnecessarily complicated and thus difficult
to maintain. Simplify it by using strlcat.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Reviewed-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c