]> Git Repo - J-linux.git/blobdiff - crypto/essiv.c
HID: hid-sensor-custom: Fix big on-stack allocation in hid_sensor_custom_get_known()
[J-linux.git] / crypto / essiv.c
index 8bcc5bdcb2a95476227a4749f57d5a72c059bb27..e33369df90344545b9bffd8bfda2697190441a5a 100644 (file)
@@ -543,7 +543,7 @@ static int essiv_create(struct crypto_template *tmpl, struct rtattr **tb)
        }
 
        /* record the driver name so we can instantiate this exact algo later */
-       strlcpy(ictx->shash_driver_name, hash_alg->base.cra_driver_name,
+       strscpy(ictx->shash_driver_name, hash_alg->base.cra_driver_name,
                CRYPTO_MAX_ALG_NAME);
 
        /* Instance fields */
This page took 0.027432 seconds and 4 git commands to generate.