cgfsng: cgfsng_attach()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-02-17 19:44:21 +01:00
parent 25f66a8fde
commit 0cb10e11f1
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -2495,7 +2495,7 @@ static bool cgfsng_attach(const char *name, const char *lxcpath, pid_t pid)
char pidstr[25];
len = snprintf(pidstr, 25, "%d", pid);
if (len < 0 || len > 25)
if (len < 0 || len >= 25)
return false;
for (i = 0; hierarchies[i]; i++) {