diff --git a/src/communicator/comm_dyn.c b/src/communicator/comm_dyn.c index 2fa830b320..c0966ef8ee 100644 --- a/src/communicator/comm_dyn.c +++ b/src/communicator/comm_dyn.c @@ -407,7 +407,7 @@ ompi_comm_start_processes(int count, char **array_of_commands, /* default value: If the user did not tell us where to look for the executable, we assume the current working directory */ if ( !have_wdir ) { - getcwd(cwd, MAXPATHLEN); + getcwd(cwd, OMPI_PATH_MAX); sched->cwd = strdup(cwd); } sched->nodelist = nodelists[i];