Fix incorrect closing bracket in strlen call
The bracketing was causing heap overflow when trying to run the system tests.
This commit is contained in:
parent
753fa0552a
commit
adde085b7d
@ -328,7 +328,7 @@ int Nodes::read_basic_env()
|
||||
}
|
||||
else
|
||||
{
|
||||
access_homedir[i] = (char *) malloc(strlen(access_user[i] + 9));
|
||||
access_homedir[i] = (char *) malloc(strlen(access_user[i]) + 9);
|
||||
sprintf(access_homedir[i], "/home/%s/", access_user[i]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user