summaryrefslogtreecommitdiff
path: root/crypto/pcompress.c
diff options
context:
space:
mode:
authorJames Morris <james.l.morris@oracle.com>2013-03-11 12:54:48 +1100
committerJames Morris <james.l.morris@oracle.com>2013-03-11 12:54:48 +1100
commitae3fa576302633290c8d7c394c4098ec027bd8a1 (patch)
tree51a6d97b1ef57be7cb16c797497a610b9e1e1a5d /crypto/pcompress.c
parentca10c662b0ec80db86864277a94889cc63bae958 (diff)
parenta390f39a9ef577563398884870a50eba558dfe49 (diff)
downloadlinux-crypto-ae3fa576302633290c8d7c394c4098ec027bd8a1.tar.gz
linux-crypto-ae3fa576302633290c8d7c394c4098ec027bd8a1.zip
Merge tag 'v3.9-rc2' into next
Sync with Linus. Linux 3.9-rc2
Diffstat (limited to 'crypto/pcompress.c')
-rw-r--r--crypto/pcompress.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/pcompress.c b/crypto/pcompress.c
index 04e083ff..7140fe70 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)
{
struct crypto_report_comp rpcomp;
- snprintf(rpcomp.type, CRYPTO_MAX_ALG_NAME, "%s", "pcomp");
-
+ strncpy(rpcomp.type, "pcomp", sizeof(rpcomp.type));
if (nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS,
sizeof(struct crypto_report_comp), &rpcomp))
goto nla_put_failure;