]> git.sur5r.net Git - i3/i3/commitdiff
Allocate the right amount of memory for ev_child
authorAxel Wagner <mail@merovius.de>
Tue, 7 Sep 2010 15:28:15 +0000 (17:28 +0200)
committerAxel Wagner <mail@merovius.de>
Tue, 7 Sep 2010 15:28:15 +0000 (17:28 +0200)
i3bar/src/child.c

index 2b0fb780a77b1a27bd857188ea7846439c659b32..c0a56661c5f92e320409abec19617ed5602393b9 100644 (file)
@@ -169,7 +169,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);