]> 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:56 +0000 (17:28 +0200)
i3bar/src/child.c

index 2ba839ecd121a0232ea28dbbe8ff818caa7d4289..97162cb4bacc0125cfaba0b620ac447d1368988d 100644 (file)
@@ -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);