From: Axel Wagner Date: Tue, 7 Sep 2010 15:28:15 +0000 (+0200) Subject: Allocate the right amount of memory for ev_child X-Git-Tag: 4.0.1~7^2~70 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d38bf81ba6d66ce0124019082820f7bdec1659b;p=i3%2Fi3 Allocate the right amount of memory for ev_child --- diff --git a/i3bar/src/child.c b/i3bar/src/child.c index 2ba839ec..97162cb4 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -142,7 +142,7 @@ void start_child(char *command) { ev_io_start(main_loop, stdin_io); /* We must cleanup, if the child unexpectedly terminates */ - child_sig = malloc(sizeof(ev_io)); + child_sig = malloc(sizeof(ev_child)); ev_child_init(child_sig, &child_sig_cb, child_pid, 0); ev_child_start(main_loop, child_sig);