We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a358f59 commit 0713d52Copy full SHA for 0713d52
src/provider/p_ibmca.c
@@ -879,7 +879,7 @@ static int ibmca_config_debug(struct ibmca_prov_ctx *provctx,
879
if (provctx->debug == true) {
880
provctx->debug_pid = getpid();
881
882
- strncpy(prov_name, provctx->name, sizeof(prov_name));
+ strncpy(prov_name, provctx->name, sizeof(prov_name) - 1);
883
prov_name[sizeof(prov_name) - 1] = '\0';
884
while ((p = strchr(prov_name, '/')) != NULL)
885
*p = '_';
0 commit comments