X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=crypto%2Fpcompress.c;h=7140fe70c7af04b2f544839b734de9aa5c461533;hb=c96223d3b6b2794b6262d1a31d35694760cff5b2;hp=04e083ff5373528ae4cb19263cb340461827df16;hpb=8762541f067d371320731510669e27f5cc40af38;p=cascardo%2Flinux.git 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) { 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;