1 diff --git a/src/common/env.c b/src/common/env.c
2 index 4dad18fef1..730f28af96 100644
5 @@ -2073,7 +2073,7 @@ char **env_array_user_default(const char *username, int timeout, int mode,
7 char *starttoken = "XXXXSLURMSTARTPARSINGHEREXXXX";
8 char *stoptoken = "XXXXSLURMSTOPPARSINGHEREXXXXX";
9 - char cmdstr[256], *env_loc = NULL;
10 + char cmdstr[PATH_MAX], *env_loc = NULL;
11 char *stepd_path = NULL;
12 int fildes[2], found, fval, len, rc, timeleft;
13 int buf_read, buf_rem, config_timeout;