Skip to content

Commit

Permalink
cgroups: remove unnecessary line
Browse files Browse the repository at this point in the history
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
  • Loading branch information
2xsec committed Oct 2, 2018
1 parent 74d9689 commit 99bb3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -136,10 +136,10 @@ static char *cg_legacy_must_prefix_named(char *entry)
len = strlen(entry);
prefixed = must_alloc(len + 6);


memcpy(prefixed, "name=", STRLITERALLEN("name="));
memcpy(prefixed + STRLITERALLEN("name="), entry, len);
prefixed[len + 5] = '\0';

return prefixed;
}

Expand Down

0 comments on commit 99bb3fa

Please sign in to comment.