crypto: essiv - Replace memcpy() + NUL-termination with strscpy()
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 16 Mar 2025 21:15:04 +0000 (22:15 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 09:39:06 +0000 (17:39 +0800)
commitfdd305803bc1eb59c300503fb37911330692ef69
treeac52df0afcf12d60c7b1326c7d81c78fb39ae146
parent27b13425349e94ad77b174b032674097cab241c8
crypto: essiv - Replace memcpy() + NUL-termination with strscpy()

Use strscpy() to copy the NUL-terminated string 'p' to the destination
buffer instead of using memcpy() followed by a manual NUL-termination.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/essiv.c