Skip to content

Commit

Permalink
Use safe strncpy
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycurtis committed Jul 15, 2022
1 parent bf8e8b3 commit 6edd88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shmemc/ucx/pmix_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ shmemc_pmi_client_init(void)

/* init proc for exchange use, rank filled in as needed */
PMIX_PROC_CONSTRUCT(&ex_pmix);
strncpy(ex_pmix.nspace, my_pmix.nspace, PMIX_MAX_NSLEN + 1);
STRNCPY_SAFE(ex_pmix.nspace, my_pmix.nspace, PMIX_MAX_NSLEN + 1);

init_ranks();
init_peers();
Expand Down

0 comments on commit 6edd88b

Please sign in to comment.