diff options
Diffstat (limited to 'crypto/pcompress.c')
-rw-r--r-- | crypto/pcompress.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/pcompress.c b/crypto/pcompress.c index 04e083ff5373..7140fe70c7af 100644 --- a/crypto/pcompress.c +++ b/crypto/pcompress.c | |||
@@ -53,8 +53,7 @@ static int crypto_pcomp_report(struct sk_buff *skb, struct crypto_alg *alg) | |||
53 | { | 53 | { |
54 | struct crypto_report_comp rpcomp; | 54 | struct crypto_report_comp rpcomp; |
55 | 55 | ||
56 | snprintf(rpcomp.type, CRYPTO_MAX_ALG_NAME, "%s", "pcomp"); | 56 | strncpy(rpcomp.type, "pcomp", sizeof(rpcomp.type)); |
57 | |||
58 | if (nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, | 57 | if (nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, |
59 | sizeof(struct crypto_report_comp), &rpcomp)) | 58 | sizeof(struct crypto_report_comp), &rpcomp)) |
60 | goto nla_put_failure; | 59 | goto nla_put_failure; |