cgroup: fix too small buffer for strlcpy(), found by Coverity Scan

Off by one, of course.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-04-07 13:54:34 +02:00
parent badf8701bf
commit 3b495d7518
+1 -1
View File
@@ -175,7 +175,7 @@ static void append_ctrl(char *ctrl)
static void cgroup_handle_event(char *event, uint32_t mask)
{
char path[strlen(event)];
char path[strlen(event) + 1];
char buf[80];
char *ptr;
FILE *fp;