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:
@ -328,7 +328,7 @@ int Nodes::read_basic_env()
|
|||||||
}
|
}
|
||||||
else
|
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]);
|
sprintf(access_homedir[i], "/home/%s/", access_user[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user