mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00: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 parent
badf8701bf
commit
3b495d7518
1 file changed
+1
-1
+1
-1
@@ -175,7 +175,7 @@ static void append_ctrl(char *ctrl)
|
|||||||
|
|
||||||
static void cgroup_handle_event(char *event, uint32_t mask)
|
static void cgroup_handle_event(char *event, uint32_t mask)
|
||||||
{
|
{
|
||||||
char path[strlen(event)];
|
char path[strlen(event) + 1];
|
||||||
char buf[80];
|
char buf[80];
|
||||||
char *ptr;
|
char *ptr;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|||||||
Reference in new issue
Block a user