mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user