This patch kills an strncpy by using strscpy instead.  The name
would be silently truncated if it is too long.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: John Allen <john.allen@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
 #include <crypto/internal/hash.h>
 #include <crypto/sha.h>
 #include <crypto/scatterwalk.h>
+#include <linux/string.h>
 
 #include "ccp-crypto.h"
 
        *ccp_alg = *base_alg;
        INIT_LIST_HEAD(&ccp_alg->entry);
 
-       strncpy(ccp_alg->child_alg, def->name, CRYPTO_MAX_ALG_NAME);
+       strscpy(ccp_alg->child_alg, def->name, CRYPTO_MAX_ALG_NAME);
 
        alg = &ccp_alg->alg;
        alg->setkey = ccp_sha_setkey;