summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/evp/ctrl_params_translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c
index 808804ab3a..c13a40a95f 100644
--- a/crypto/evp/ctrl_params_translate.c
+++ b/crypto/evp/ctrl_params_translate.c
@@ -1344,7 +1344,7 @@ static int fix_rsa_pss_saltlen(enum state state,
break;
}
if (i == OSSL_NELEM(str_value_map)) {
- BIO_snprintf(ctx->name_buf, 5, "%d", ctx->p1);
+ BIO_snprintf(ctx->name_buf, sizeof(ctx->name_buf), "%d", ctx->p1);
} else {
strcpy(ctx->name_buf, str_value_map[i].ptr);
}