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:
Marko 2019-05-06 13:37:52 +03:00
parent 753fa0552a
commit adde085b7d

View File

@ -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]);
}