cgfsng: cgfsng_attach()

parent 8f975b98
...@@ -2473,7 +2473,7 @@ static bool cgfsng_attach(const char *name, const char *lxcpath, pid_t pid) ...@@ -2473,7 +2473,7 @@ static bool cgfsng_attach(const char *name, const char *lxcpath, pid_t pid)
char pidstr[25]; char pidstr[25];
len = snprintf(pidstr, 25, "%d", pid); len = snprintf(pidstr, 25, "%d", pid);
if (len < 0 || len > 25) if (len < 0 || len >= 25)
return false; return false;
for (i = 0; hierarchies[i]; i++) { for (i = 0; hierarchies[i]; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment