Skip to content
Snippets Groups Projects
Commit 381e7fd7 authored by Morris Jette's avatar Morris Jette
Browse files

For for possible array over-run

parent 56854a62
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,7 @@ static void _hardware(void)
if (!xstrncmp(buf, "physical id", sizeof("physical id") - 1)) {
sscanf(buf, "physical id\t: %d", &pkg);
if (pkg > MAX_PKGS)
if (pkg >= MAX_PKGS)
fatal("Slurm can only handle %d sockets for "
"rapl, you seem to have more than that. "
"Update src/plugins/acct_gather_energy/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment